diff --git a/aleksis/apps/paweljong/predicates.py b/aleksis/apps/paweljong/predicates.py index 89dcf90db7fa18efaee56351cba1c31834ea4c9b..d6c92084f9743934805cd25f213c2c6a9701c98d 100644 --- a/aleksis/apps/paweljong/predicates.py +++ b/aleksis/apps/paweljong/predicates.py @@ -16,7 +16,7 @@ def is_own_voucher(user: User, obj: Voucher) -> bool: @predicate -def is_own_registration(user: User, registration: EventRegistration) -> bool: +def is_own_registration(user: User, obj: EventRegistration) -> bool: """Predicate which checks if the registration belongs to the user.""" return obj.person == user.person