Fixed Bug to check Permissions
This commit is contained in:
parent
7b2334bd98
commit
66d559f63b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue