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:
|
class Base:
|
||||||
def getCreditListFromUser(self, user, **kwargs):
|
def getCreditListFromUser(self, user, **kwargs):
|
||||||
try:
|
try:
|
||||||
|
if type(user) is User:
|
||||||
if user.uid == 'extern':
|
if user.uid == 'extern':
|
||||||
return []
|
return []
|
||||||
cursor = self.db.connection.cursor()
|
cursor = self.db.connection.cursor()
|
||||||
|
|
|
@ -38,6 +38,7 @@ class Base:
|
||||||
retVal.initGeruechte(creditLists)
|
retVal.initGeruechte(creditLists)
|
||||||
if workgroups:
|
if workgroups:
|
||||||
retVal.workgroups = self.getWorkgroupsOfUser(retVal.id)
|
retVal.workgroups = self.getWorkgroupsOfUser(retVal.id)
|
||||||
|
if retVal:
|
||||||
if retVal.uid == username:
|
if retVal.uid == username:
|
||||||
return retVal
|
return retVal
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue