Skip to content

Commit

Permalink
Allow collab clubs to also fetch the budget and other details for an …
Browse files Browse the repository at this point in the history
…event
  • Loading branch information
bhavberi committed Dec 23, 2024
1 parent ddd3277 commit ec49e4d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion queries/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ def event(eventid: str, info: Info) -> EventType:
if (
user is None
or user["role"] not in ["club", "cc", "slc", "slo"]
or (user["role"] == "club" and user["uid"] != event["clubid"])
or (
user["role"] == "club"
and user["uid"] != event["clubid"]
and (
event["collabclubs"] is None
or user["uid"] not in event["collabclubs"]
)
)
):
trim_public_events(event)

Expand Down

0 comments on commit ec49e4d

Please sign in to comment.