Issue
We have many of the same permission checks on several endpoints to either check someone is a website administrator, elections officer, or just logged in. We should use FastAPI's dependency injection feature to automatically add these checks without having to duplicate the check, and the errors.
Code changes: