Skip to content
Snippets Groups Projects
Commit fcedd1bc authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Merge branch 'fix-rule' into 'master'

Fix predicate

See merge request !16
parents 61f38a49 a87353cd
No related branches found
No related tags found
1 merge request!16Fix predicate
Pipeline #59969 canceled
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment