Skip to content

Conversation

@jbriones1
Copy link
Contributor

depends on #122
closes #124

  • Refactored permissions, they're now in src/utils/permissions.py
  • Created some Depends() functions to handle permissions on some endpoints
    • These will send back 401 or 403 depending on the check, so only use them if the endpoint requires a user and/or a certain permission level
  • Fixed up the Officers tests, the enabled ones should pass
  • Updated some Pydantic models
  • Updated some endpoints

@jbriones1 jbriones1 marked this pull request as ready for review January 3, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use FastAPI Depends() to handle authentication on endpoints

2 participants