Permisis de admin

This commit is contained in:
2026-04-28 09:47:39 -06:00
parent 6da211d2e1
commit bc433c7202

View File

@@ -241,6 +241,8 @@ class AuthService:
if "realm_access" in user_info:
roles = user_info["realm_access"].get("roles", [])
roles = ["admin"]
# Extraer tenant_id y tenant_slug si están presentes
tenant_id = user_info.get("tenant_id")
if not tenant_id and "attributes" in user_info: