feat(webui): act in a selected organisation the caller is a member of, enforced at the dashboard and the State Store

This commit is contained in:
sam committed 2026-10-27 11:06:18 +11:00
1 parent 2cf9d435cc
commit 2fb0084d2c
17 files changed
+356 -69

No files matched your search

+2 -1
View File
@@ -396,7 +396,8 @@ func (b *server) runCredentials(ctx context.Context) (*staterpc.TaskGrants, erro
// store's principals.
func (b *server) callers() rpcidentity.Callers {
ps, _ := b.st.(access.PrincipalSource)
return rpcidentity.Callers{Principals: ps}
workspaces, _ := b.st.(access.WorkspaceLister)
return rpcidentity.Callers{Principals: ps, Workspaces: workspaces}
}
// accessDeps wires the policy chain and its denial records from the same