From 8f8aa3b4a4281b17ca1082fb210dd051fed59f39 Mon Sep 17 00:00:00 2001 From: Julian Weng Date: Wed, 23 Oct 2024 11:18:48 -0400 Subject: [PATCH] Clexit (#181) Temporary fix for team sync --- backend/accounts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/accounts/views.py b/backend/accounts/views.py index 50f8acd..558e3e9 100644 --- a/backend/accounts/views.py +++ b/backend/accounts/views.py @@ -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(