admin can login

This commit is contained in:
Jörn-Michael Miehe 2022-03-30 02:16:06 +00:00
parent cb3a3fca69
commit d02239816a

View file

@ -143,7 +143,8 @@ class User(UserBase, table=True):
# password hash mismatch # password hash mismatch
return None return None
if user.has_tag(TagValue.login): if not (user.has_tag(TagValue.login)
or user.has_tag(TagValue.admin)):
# no login permission # no login permission
return None return None