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

Fix predicate

parent 1c44ea01
No related branches found
No related tags found
1 merge request!26Add view for ToS
Pipeline #75164 canceled
...@@ -43,4 +43,4 @@ def is_event_published(user: User, obj: EventRegistration) -> bool: ...@@ -43,4 +43,4 @@ def is_event_published(user: User, obj: EventRegistration) -> bool:
@predicate @predicate
def is_participant(user: User, obj: Event) -> bool: def is_participant(user: User, obj: Event) -> bool:
"""Predicate which checks if the user is member of the event.""" """Predicate which checks if the user is member of the event."""
return user in obj.linked_group.members.all() return user.person in obj.linked_group.members.all()
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