wip: UI refactoring

* Activate by default the 'simple user' mode for domain administrators (when creating a new accoun)
* Don't forget to grant access to objects created by domain admins to super admins

see #204
This commit is contained in:
Antoine Nguyen
2012-05-03 18:07:01 +02:00
parent 0dc36d19db
commit ec672e57bc
3 changed files with 35 additions and 16 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ class User(DUser):
def get_identities(self):
from modoboa.lib.permissions import get_content_type
userct = get_content_type(self)
alct = get_content_type(Alias)
return self.objectaccess_set.filter(content_type__in=[userct, alct])