Skip to content

Commit 25fe8c2

Browse files
jordan-umusuclaude
andcommitted
refactor(rbac): update router to use PRESET_ROLE_SCOPES
Update import and usage to match the renamed constant from the auth-layer branch. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1bed8f7 commit 25fe8c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tracecat/authz/rbac/router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
UserScopesRead,
3434
)
3535
from tracecat.authz.rbac.service import RBACService
36-
from tracecat.authz.scopes import ORG_ROLE_SCOPES, SYSTEM_ROLE_SCOPES
36+
from tracecat.authz.scopes import ORG_ROLE_SCOPES, PRESET_ROLE_SCOPES
3737
from tracecat.contexts import ctx_scopes
3838
from tracecat.db.dependencies import AsyncDBSession
3939
from tracecat.exceptions import (
@@ -959,7 +959,7 @@ async def get_my_scopes(
959959
workspace_role_scopes: list[str] = []
960960
if role.workspace_role is not None:
961961
workspace_role_scopes = sorted(
962-
SYSTEM_ROLE_SCOPES.get(role.workspace_role, frozenset())
962+
PRESET_ROLE_SCOPES.get(role.workspace_role, frozenset())
963963
)
964964

965965
# Get group and user role scopes

0 commit comments

Comments
 (0)