From bc433c72022f80da8a0df5d75113f438b864c5e5 Mon Sep 17 00:00:00 2001 From: Kevin_Ramirez Date: Tue, 28 Apr 2026 09:47:39 -0600 Subject: [PATCH] Permisis de admin --- backend/api/v1/modules/core/auth/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/api/v1/modules/core/auth/service.py b/backend/api/v1/modules/core/auth/service.py index a6fa0407..2fafd364 100644 --- a/backend/api/v1/modules/core/auth/service.py +++ b/backend/api/v1/modules/core/auth/service.py @@ -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: