From abe5b426d7d10f2bebaa0e505070a408d829a7f3 Mon Sep 17 00:00:00 2001 From: Taesung Hwang Date: Fri, 26 Jan 2024 14:29:49 -0800 Subject: [PATCH] Allow check-in leads to confirm non-hackers --- apps/api/src/routers/admin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/api/src/routers/admin.py b/apps/api/src/routers/admin.py index 0b754e85..f37469f4 100644 --- a/apps/api/src/routers/admin.py +++ b/apps/api/src/routers/admin.py @@ -271,7 +271,10 @@ async def check_in_participant( "/update-attendance/{uid}", ) async def update_attendance( - uid: str, director: Annotated[User, Depends(require_role([Role.DIRECTOR]))] + uid: str, + director: Annotated[ + User, Depends(require_role([Role.DIRECTOR, Role.CHECKIN_LEAD])) + ], ) -> None: """Update status to Role.ATTENDING for non-hackers.""" try: