diff --git a/app/dependencies.py b/app/dependencies.py index aa520e770f..5d43b3b0ff 100644 --- a/app/dependencies.py +++ b/app/dependencies.py @@ -597,9 +597,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] = [] for permission_name in permissions_name: