8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

documentation

This commit is contained in:
chapeau 2020-11-29 22:17:52 +01:00 committed by Hugo Levy-Falk
parent 5a79ffb0f5
commit 70b492c315

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