diff --git a/aleksis/apps/alsijil/util/predicates.py b/aleksis/apps/alsijil/util/predicates.py index af229770c93aa1fddc7dd82ded76af3f38119345..e7b9bca60617b1c8c3d7e864b645c550f4b2d7ca 100644 --- a/aleksis/apps/alsijil/util/predicates.py +++ b/aleksis/apps/alsijil/util/predicates.py @@ -68,7 +68,7 @@ def is_person_group_owner(user: User, obj: Person) -> bool: Checks whether the person linked to the user is the owner of any group of the given person. """ - return obj.filter(member_of__owners=user.person).exists() + return obj.member_of.filter(owners=user.person).exists() @predicate