mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-23 06:38:40 +02:00
* Added a simple box to display the current resource usage (see #105)
* Cleanup (see #204) * Fixed javascript issues
This commit is contained in:
+1
-1
@@ -246,7 +246,7 @@ class AccountFormGeneral(forms.ModelForm):
|
||||
role = None
|
||||
if self.cleaned_data.has_key("role"):
|
||||
role = self.cleaned_data["role"]
|
||||
elif self.user.group == "DomainAdmins":
|
||||
elif self.user.group == "DomainAdmins" and self.user != account:
|
||||
role = "SimpleUsers"
|
||||
if role is not None:
|
||||
account.groups.clear()
|
||||
|
||||
Reference in New Issue
Block a user