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: permission middleware #216

Merged
merged 5 commits into from
Dec 30, 2024
Merged

feat: permission middleware #216

merged 5 commits into from
Dec 30, 2024

Conversation

edalholt
Copy link
Member

@edalholt edalholt commented Dec 29, 2024

This PR moves all permission checks to a dedicated middleware, simplifying the code by eliminating permission checks in the controllers 🧹🧹
The middleware is applied to the routes and verifies whether the user is an organizer or a member of the specified group.

At the same time I also cleaned up the API a bit, with more consistent names and paths, improving the restfulness

@edalholt edalholt self-assigned this Dec 29, 2024
@edalholt edalholt marked this pull request as ready for review December 30, 2024 14:52
@edalholt edalholt merged commit 83b0e6d into dev Dec 30, 2024
5 checks passed
@edalholt edalholt deleted the feat/permission-middleware branch December 30, 2024 14:53
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.

1 participant