Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading