diff --git a/aleksis/core/util/predicates.py b/aleksis/core/util/predicates.py index ec92aeeda0f0fcbf3fd6a439a824633bcccc1f9a..3f6aeeda62cdc771282137f355e6b3b473c5b9ee 100644 --- a/aleksis/core/util/predicates.py +++ b/aleksis/core/util/predicates.py @@ -75,6 +75,10 @@ def has_any_object(perm: str, klass): Build predicate which checks whether a user has access to objects with the provided permission or rule. + Differentiates between object-related permissions and rules. + In case a object-related permissions with the same ContentType class + as the given class is passed, the optimized django-guardian get_objects_for_user function + is used. """ name = f"has_any_object:{perm}"