Skip to content
Snippets Groups Projects
Commit 7a0e9851 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix custom event owner predicate

parent 1e49947d
No related branches found
No related tags found
1 merge request!1314Resolve "Allow for creation of simple events"
Pipeline #152066 canceled
......@@ -177,4 +177,4 @@ def is_own_celery_task(user: User, obj: Model) -> bool:
@predicate
def is_custom_event_owner(user: User, custom_event: CustomEvent) -> bool:
"""Predicate which checks if the user is the owner of the provided custom event."""
return user.person == group.owner
return user.person == custom_event.owner
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