From fb79951ee7cab8d43780fc79827d6d9aad73774e Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Mon, 6 Sep 2021 01:39:28 +0200 Subject: [PATCH] =?UTF-8?q?Odebr=C3=A1n=C3=AD=20org=C5=AFm=20pr=C3=A1vo=20?= =?UTF-8?q?=C5=99e=C5=A1itel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/migrations/0088_perm_org_a_ucastnik.py | 1 + 1 file changed, 1 insertion(+) diff --git a/seminar/migrations/0088_perm_org_a_ucastnik.py b/seminar/migrations/0088_perm_org_a_ucastnik.py index febcf141..dc76343a 100644 --- a/seminar/migrations/0088_perm_org_a_ucastnik.py +++ b/seminar/migrations/0088_perm_org_a_ucastnik.py @@ -22,6 +22,7 @@ def add_perms(apps, schema_editor): for org in User.objects.all(): if org and org.is_staff: org.user_permissions.add(org_perm) + org.user_permissions.remove(resitel_perm) class Migration(migrations.Migration):