Skip to content

Commit ad2ab33

Browse files
committed
fix(rbac): security patch for authenticated_user_only flow
1 parent 4a70965 commit ad2ab33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tracecat/auth/credentials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ async def _authenticated_user_only(
913913
is_platform_superuser=user.is_superuser,
914914
# organization_id intentionally None - user may not belong to any org
915915
)
916-
# Superusers get "*" scope (all access)
917-
ctx_scopes.set(frozenset({"*"}))
916+
scopes = compute_effective_scopes(role)
917+
ctx_scopes.set(scopes)
918918
ctx_role.set(role)
919919
return role
920920

0 commit comments

Comments
 (0)