grants: no seat can lose its holder when every account subscribes to every subject
The list giving every account every subject was held at 23:20:32: the guard reads each seat's holders from the text of the subjects users subscribe to, and > names no seat, so it saw every seat lose its holder.
This commit is contained in:
@@ -470,7 +470,11 @@ func (p *Part) Compose() Result {
|
||||
var bus, lost []string
|
||||
if st.Compare.Unread == "" {
|
||||
bus = names(loaded)
|
||||
lost = holdings.LastHolders(holdings.ByUsers(loaded), holdings.ByUsers(users))
|
||||
// With every account subscribing to every subject (buscompose.EveryAccountMayDoEverything) no seat can lose its holder
|
||||
// by the list: the guard reads seat subjects by their text, and `>` names none of them.
|
||||
if !buscompose.EveryAccountMayDoEverything {
|
||||
lost = holdings.LastHolders(holdings.ByUsers(loaded), holdings.ByUsers(users))
|
||||
}
|
||||
}
|
||||
p.writeSealed(&res, list, n, leftOut, dropped, in, bus, lost, users, loaded)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user