mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-29 11:44:28 +01:00
@@ -259,7 +259,7 @@ class User(AbstractUser):
|
||||
if role == "SuperAdmins":
|
||||
self.is_superuser = True
|
||||
else:
|
||||
if self.is_superuser:
|
||||
if self.is_superuser or self.has_perm("core.add_user"):
|
||||
ObjectAccess.objects.filter(user=self).delete()
|
||||
self.is_superuser = False
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user