Skip to content
Snippets Groups Projects
Verified Commit 56c5fa40 authored by ynerant's avatar ynerant
Browse files

We don't need a session to have permissions


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent b5ef937a
No related branches found
No related tags found
3 merge requests!162Bugs mineurs, documentation,!157[Invoices] Product quantities can be floating,!155CAS + OAuth2
......@@ -134,8 +134,6 @@ class PermissionBackend(ModelBackend):
return False
sess = get_current_session()
if sess is not None and sess.session_key is None:
return False
if user_obj.is_superuser and sess.get("permission_mask", -1) >= 42:
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment