gruppe sicherstellen

This commit is contained in:
Holger Trampe 2021-10-23 17:38:31 +02:00
parent 670c937b83
commit 059a19ba3a
1 changed files with 5 additions and 0 deletions

View File

@ -223,6 +223,11 @@ def NCAddUser(request):
for g in user.groups.all():
groups.append(AgencyGroup.objects.get(group=g).nc_name)
# Die gruppe Mitarbeiter holen und ebenfalls hinzufügen
ag_mitarbeiter = AgencyGroup.objects.filter(agency=user.profile.agency, agencygroupname="Mitarbeiter").first().nc_name
groups.append(ag_mitarbeiter)
#password = get_random_password(50)
password = ""
userid = user.username