Skip to content

Fix/correct permissions on routes#20

Merged
Cold-FR merged 2 commits intomainfrom
fix/correct-permissions-on-routes
Mar 11, 2026
Merged

Fix/correct permissions on routes#20
Cold-FR merged 2 commits intomainfrom
fix/correct-permissions-on-routes

Conversation

@Cold-FR
Copy link
Owner

@Cold-FR Cold-FR commented Mar 11, 2026

No description provided.

@Cold-FR Cold-FR self-assigned this Mar 11, 2026
@Cold-FR Cold-FR added the bug Something isn't working label Mar 11, 2026
Cold-FR added 2 commits March 11, 2026 11:28
* Implemented `IsGranted` attributes for user retrieval and photo management routes.
* Restricted access to `/api/users` for users with `ROLE_USER`.
* Restricted access to photo upload and delete routes for users with `ROLE_ADMIN`.
* Remove admin-only restriction for POST requests on /api/users
* Ensure all other API routes require full authentication
@Cold-FR Cold-FR force-pushed the fix/correct-permissions-on-routes branch from f778f6d to 0bfc878 Compare March 11, 2026 10:29
@Cold-FR Cold-FR merged commit eb35fc8 into main Mar 11, 2026
2 checks passed
@Cold-FR Cold-FR deleted the fix/correct-permissions-on-routes branch March 11, 2026 10:30
Cold-FR added a commit that referenced this pull request Mar 16, 2026
* feat(api): add role-based access control to user routes

* Implemented `IsGranted` attributes for user retrieval and photo management routes.
* Restricted access to `/api/users` for users with `ROLE_USER`.
* Restricted access to photo upload and delete routes for users with `ROLE_ADMIN`.

* fix(api): correct permissions on user routes

* Remove admin-only restriction for POST requests on /api/users
* Ensure all other API routes require full authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant