We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bed8f7 commit 25fe8c2Copy full SHA for 25fe8c2
tracecat/authz/rbac/router.py
@@ -33,7 +33,7 @@
33
UserScopesRead,
34
)
35
from tracecat.authz.rbac.service import RBACService
36
-from tracecat.authz.scopes import ORG_ROLE_SCOPES, SYSTEM_ROLE_SCOPES
+from tracecat.authz.scopes import ORG_ROLE_SCOPES, PRESET_ROLE_SCOPES
37
from tracecat.contexts import ctx_scopes
38
from tracecat.db.dependencies import AsyncDBSession
39
from tracecat.exceptions import (
@@ -959,7 +959,7 @@ async def get_my_scopes(
959
workspace_role_scopes: list[str] = []
960
if role.workspace_role is not None:
961
workspace_role_scopes = sorted(
962
- SYSTEM_ROLE_SCOPES.get(role.workspace_role, frozenset())
+ PRESET_ROLE_SCOPES.get(role.workspace_role, frozenset())
963
964
965
# Get group and user role scopes
0 commit comments