fixed bug, sodass auch ein user sich einloggen kann, wenn er noch nicht in der datenbank ist
This commit is contained in:
parent
c7e1c981e6
commit
ba16743fde
|
@ -9,6 +9,7 @@ from geruecht.model.user import User
|
|||
class Base:
|
||||
def getCreditListFromUser(self, user, **kwargs):
|
||||
try:
|
||||
if type(user) is User:
|
||||
if user.uid == 'extern':
|
||||
return []
|
||||
cursor = self.db.connection.cursor()
|
||||
|
|
|
@ -38,6 +38,7 @@ class Base:
|
|||
retVal.initGeruechte(creditLists)
|
||||
if workgroups:
|
||||
retVal.workgroups = self.getWorkgroupsOfUser(retVal.id)
|
||||
if retVal:
|
||||
if retVal.uid == username:
|
||||
return retVal
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue