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

Bad paste in comment


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 9b262075
No related branches found
No related tags found
2 merge requests!174OAuth2, tests WEI,!170Implement OAuth2 scopes based on permissions
......@@ -127,7 +127,7 @@ class PermissionBackend(ModelBackend):
user = request.user
if user is None or user.is_anonymous:
# Anonymous users can't do asetdefaultnything
# Anonymous users can't do anything
return Q(pk=-1)
if user.is_superuser and request.session.get("permission_mask", -1) >= 42:
......
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