From 66d559f63b60ffe536b6441dcb99209140e84ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sat, 31 Oct 2020 21:30:48 +0100 Subject: [PATCH] Fixed Bug to check Permissions --- flaschengeist/controller/sessionController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/controller/sessionController.py b/flaschengeist/controller/sessionController.py index 61ce3a4..7d5e3e8 100644 --- a/flaschengeist/controller/sessionController.py +++ b/flaschengeist/controller/sessionController.py @@ -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