WIP (handle conflicts)

see #832
This commit is contained in:
Antoine Nguyen
2016-02-22 09:33:18 +01:00
parent 8e348ef696
commit 000aba6569
13 changed files with 213 additions and 101 deletions
+1
View File
@@ -349,6 +349,7 @@ class User(PermissionsMixin):
self.save()
def post_create(self, creator):
"""Grant permission on this user to creator."""
from modoboa.lib.permissions import grant_access_to_object
grant_access_to_object(creator, self, is_owner=True)
events.raiseEvent("AccountCreated", self)