8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-28 15:42:25 +00:00

documentation

This commit is contained in:
chapeau 2020-11-29 22:17:52 +01:00 committed by Gabriel Detraz
parent 7e60c6ed41
commit 5e24867ccd

View file

@ -239,6 +239,8 @@ class AutodetectACLPermission(permissions.BasePermission):
if getattr(view, "_ignore_model_permissions", False): if getattr(view, "_ignore_model_permissions", False):
return True 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)): if not getattr(view, "queryset", getattr(view, "get_queryset", None)):
return True return True