Fixed Bug to check Permissions

This commit is contained in:
Tim Gröger 2020-10-31 21:30:48 +01:00
parent 7b2334bd98
commit 66d559f63b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def validate_token(token, user_agent, permissions):
if session.expires >= datetime.now(timezone.utc) and (
session.browser == user_agent.browser and session.platform == user_agent.platform
):
if not permissions or session._user.has_permissions(permissions):
if not permissions or session._user.has_permission(permissions):
session.refresh()
db.session.commit()
return session