Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker/scripts/sync_user_supabase2pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ def determine_user_role(user_id, tenant_id, user_email):
if user_email and user_email.lower() == LEGACY_ADMIN_EMAIL.lower():
return "ADMIN"

# Rule 3: If tenant_id is empty, set it to SU
if not tenant_id:
return "SU"

# Default: USER
return "USER"

Expand Down
Loading