admin can login
This commit is contained in:
parent
cb3a3fca69
commit
d02239816a
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@ class User(UserBase, table=True):
|
|||
# password hash mismatch
|
||||
return None
|
||||
|
||||
if user.has_tag(TagValue.login):
|
||||
if not (user.has_tag(TagValue.login)
|
||||
or user.has_tag(TagValue.admin)):
|
||||
# no login permission
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue