mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-23 07:52:23 +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
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user