mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Bad paste in comment
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
9b26207515
commit
a3fd8ba063
@ -127,7 +127,7 @@ class PermissionBackend(ModelBackend):
|
|||||||
user = request.user
|
user = request.user
|
||||||
|
|
||||||
if user is None or user.is_anonymous:
|
if user is None or user.is_anonymous:
|
||||||
# Anonymous users can't do asetdefaultnything
|
# Anonymous users can't do anything
|
||||||
return Q(pk=-1)
|
return Q(pk=-1)
|
||||||
|
|
||||||
if user.is_superuser and request.session.get("permission_mask", -1) >= 42:
|
if user.is_superuser and request.session.get("permission_mask", -1) >= 42:
|
||||||
|
Loading…
Reference in New Issue
Block a user