From 5e24867ccdddc967abd7d762fc049a4ef72ca124 Mon Sep 17 00:00:00 2001 From: chapeau Date: Sun, 29 Nov 2020 22:17:52 +0100 Subject: [PATCH] documentation --- api/permissions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/permissions.py b/api/permissions.py index 3ee61f33..ab7453f4 100644 --- a/api/permissions.py +++ b/api/permissions.py @@ -239,6 +239,8 @@ class AutodetectACLPermission(permissions.BasePermission): if getattr(view, "_ignore_model_permissions", False): return True + # Bypass permission verifications if it is a functional view + # (permissions are handled by ACL) if not getattr(view, "queryset", getattr(view, "get_queryset", None)): return True