Skip to content

Commit 8fac5c1

Browse files
Fix organizer ID check
1 parent f1c9afe commit 8fac5c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

functions/auth/oauth_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _get_registration(uid: str, username: str) -> User:
113113

114114
import gspread
115115

116-
is_organizer = uid in ORGANIZERS_LIST.value.split(",")
116+
is_organizer = uid in (id.strip() for id in ORGANIZERS_LIST.value.split(","))
117117

118118
if is_organizer:
119119
return User(id=uid, role="organizer", username=username)

0 commit comments

Comments
 (0)