Fix user delete flow 5
This commit is contained in:
@@ -54,7 +54,7 @@ async def verify_tenant_access(
|
||||
):
|
||||
"""Verify if user has access to tenant - Called by Gateway"""
|
||||
# Check if this is a service request
|
||||
if user_id in ["training-service", "data-service", "forecasting-service"]:
|
||||
if user_id in ["training-service", "data-service", "forecasting-service", "auth-service"]:
|
||||
# Services have access to all tenants for their operations
|
||||
return TenantAccessResponse(
|
||||
has_access=True,
|
||||
@@ -295,6 +295,7 @@ async def get_user_tenants(
|
||||
_admin_check = Depends(require_admin_role),
|
||||
db: AsyncSession = Depends(get_db)
|
||||
):
|
||||
|
||||
"""Get all tenant memberships for a user (admin only)"""
|
||||
try:
|
||||
user_uuid = uuid.UUID(user_id)
|
||||
|
||||
Reference in New Issue
Block a user