Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new check-in lead role #323

Merged
merged 4 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api/src/routers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def confirm_attendance() -> None:
@router.post(
"/waitlist-release/{uid}",
# TODO: allow check-in leads to release
samderanova marked this conversation as resolved.
Show resolved Hide resolved
dependencies=[Depends(require_role([Role.DIRECTOR]))],
dependencies=[Depends(require_role([Role.DIRECTOR, Role.CHECKIN_LEAD]))],
)
async def waitlist_release(uid: str) -> None:
"""Release an applicant from the waitlist and send email."""
Expand Down
1 change: 1 addition & 0 deletions apps/api/src/utils/user_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Role(str, Enum):
REVIEWER = "reviewer"
ORGANIZER = "organizer"
VOLUNTEER = "volunteer"
CHECKIN_LEAD = "checkin_lead"
samderanova marked this conversation as resolved.
Show resolved Hide resolved


class Status(str, Enum):
Expand Down