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
1 changed files with 1 additions and 1 deletions

View File

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