fix webappUser create user with groups dont exist

This commit is contained in:
jorgepastorr 2023-09-05 17:40:58 +02:00
parent 076f5dbb96
commit d5980fd0c8
1 changed files with 2 additions and 1 deletions

View File

@ -812,7 +812,8 @@ class WebappUserController(ServiceController):
def get_groups(self, user):
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")
return groups