From 6270119d2b421f83205875124fa0739826b653e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Tue, 14 May 2013 11:54:51 +0000 Subject: [PATCH] Fixed groups on internal auth --- server/src/uds/auths/InternalDB/Authenticator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/uds/auths/InternalDB/Authenticator.py b/server/src/uds/auths/InternalDB/Authenticator.py index 9c5a8dfb2..2d05a0bd8 100644 --- a/server/src/uds/auths/InternalDB/Authenticator.py +++ b/server/src/uds/auths/InternalDB/Authenticator.py @@ -82,10 +82,12 @@ class InternalDBAuth(Authenticator): # and access will be denied try: usr = auth.users.get(name=username, state=State.ACTIVE) + groups = usr.groups.all() usr.id = None if usr.real_name.strip() == '': usr.real_name = usr.name usr.name = newUsername + usr.groups = groups usr.save() except: logger.exception('Exception')