fix webappUser create user with groups dont exist
This commit is contained in:
parent
87ee955531
commit
b2d335879a
|
@ -812,7 +812,8 @@ class WebappUserController(ServiceController):
|
||||||
|
|
||||||
def get_groups(self, user):
|
def get_groups(self, user):
|
||||||
groups = []
|
groups = []
|
||||||
groups = list(user.account.systemusers.exclude(username=user.username).values_list('username', flat=True))
|
# groups = list(user.account.systemusers.exclude(username=user.username).values_list('username', flat=True))
|
||||||
|
groups.append(user.account.main_systemuser.username)
|
||||||
groups.append("webapp-systemusers")
|
groups.append("webapp-systemusers")
|
||||||
return groups
|
return groups
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue