From e991b69f01487bbf91799649ecbac4b697e732fd Mon Sep 17 00:00:00 2001 From: armanddidierjean <95971503+armanddidierjean@users.noreply.github.com> Date: Tue, 25 Aug 2026 10:26:44 +0200 Subject: [PATCH] Remove permissions admin bypass --- app/dependencies.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/dependencies.py b/app/dependencies.py index 55fa32a42f..d574d9b546 100644 --- a/app/dependencies.py +++ b/app/dependencies.py @@ -522,8 +522,6 @@ async def is_user_allowed_to( """ A dependency that checks that user has the permission with the given name then returns the corresponding user. """ - if GroupType.admin in [group.id for group in user.groups]: - return user allowed_group_ids: list[str] = [] allowed_account_types: list[AccountType] = []