Skip to content

Commit

Permalink
Clexit
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Oct 23, 2024
1 parent 6652b1f commit 36e83f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def post(self, request, format=None):
content_type = ContentType.objects.get(app_label="accounts", model="user")
perms = Permission.objects.filter(
content_type=content_type, codename__endswith="_admin"
)
).exclude(codename="penn_clubs_admin")
for perm in perms:
perm.user_set.clear()
User.objects.filter(Q(is_superuser=True) | Q(is_staff=True)).update(
Expand Down

0 comments on commit 36e83f9

Please sign in to comment.