Only do lookup by userid if session is None
This commit is contained in:
parent
755bcaa311
commit
f02fac20ed
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ class FilebasedUserManager(UserManager):
|
|||
if user is not None:
|
||||
return user
|
||||
|
||||
if userid is not None:
|
||||
if userid is not None and session is None:
|
||||
if userid not in self._users.keys():
|
||||
return None
|
||||
return self._users[userid]
|
||||
|
|
|
|||
Loading…
Reference in a new issue