refac: debt on role backend

This commit is contained in:
Florian Sylvain committed 2026-10-26 23:34:35 +01:00
1 parent de142f6c5f
commit a043f7f41a
130 files changed
+3591 -512

No files matched your search

@@ -34,7 +34,7 @@ type ActivityQuery struct {
}
func scopeFilterToViewer(filter *audit.Filter, viewerID uint32, grants role.GrantSet) error {
switch grants.Scope(role.KeyActivityView) {
switch grants.ScopeFor(role.KeyActivityView, "") {
case role.ScopeAll:
return nil
case role.ScopeOwn: