Skip to content

Commit

Permalink
exclude superusers from backoffice permissions by permissions view
Browse files Browse the repository at this point in the history
  • Loading branch information
tykling committed Oct 2, 2024
1 parent 74b0f50 commit 1c2f651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backoffice/views/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_queryset(self, *args, **kwargs):
User.objects.with_perm(
perm,
backend="django.contrib.auth.backends.ModelBackend",
),
).exclude(is_superuser=True),
),
)
return perms

0 comments on commit 1c2f651

Please sign in to comment.