1
0
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:
Yohann D'ANELLO 2021-06-17 22:13:43 +02:00
parent 9b26207515
commit a3fd8ba063
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -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: