mesh-grants: grants_accounts reads the account consumers' differences in shadow, where no condition is raised (issue 774, ADR 0561 §6, §9)

This commit is contained in:
2026-10-27 22:41:05 +01:00
parent 23507fb3ef
commit 3f60eb95a0
3 changed files with 13 additions and 2 deletions
@@ -138,6 +138,11 @@ func (p *Part) Accounts(user string) (any, error) {
if json.Unmarshal(raw, &res) == nil && res.Accounts != nil {
answer["last_pass"] = res.Accounts
}
// And the durable consumers the accounts need, as the last pass found them: missing and differing ones are read
// here in shadow too, where no condition is raised (ADR 0561 §6, §9).
if res.Consumers != nil {
answer["consumers"] = res.Consumers
}
}
return answer, nil
}