8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-05-18 16:43:11 +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):
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