diff --git a/src/backend/app/auth/roles.py b/src/backend/app/auth/roles.py index b075aac472..e72ee600a2 100644 --- a/src/backend/app/auth/roles.py +++ b/src/backend/app/auth/roles.py @@ -87,6 +87,10 @@ async def org_admin( detail="Both org_id and project_id cannot be passed at the same time", ) + # If user is admin, skip checks + if await check_super_admin(db, user_data): + return user_data + user_id = await get_uid(user_data) if project: