From ec49e4d54c190273e83975a47a77befccf1d7bc2 Mon Sep 17 00:00:00 2001 From: Bhav Beri Date: Mon, 23 Dec 2024 11:08:34 +0530 Subject: [PATCH] Allow collab clubs to also fetch the budget and other details for an event --- queries/events.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/queries/events.py b/queries/events.py index 952fa8e..0261cb2 100644 --- a/queries/events.py +++ b/queries/events.py @@ -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)