We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a70965 commit ad2ab33Copy full SHA for ad2ab33
tracecat/auth/credentials.py
@@ -913,8 +913,8 @@ async def _authenticated_user_only(
913
is_platform_superuser=user.is_superuser,
914
# organization_id intentionally None - user may not belong to any org
915
)
916
- # Superusers get "*" scope (all access)
917
- ctx_scopes.set(frozenset({"*"}))
+ scopes = compute_effective_scopes(role)
+ ctx_scopes.set(scopes)
918
ctx_role.set(role)
919
return role
920
0 commit comments