drinkrate/DrinkRateAPI/Controllers
martinshoob 9ec9139f69 Enhance AdminOnly authorization policy
Refactor the AdminOnly authorization policy to handle cases where a user profile is not found.
Instead of throwing a NotFoundException, it now throws a ForbiddenException, ensuring a more appropriate response for unauthorized access attempts.
Also introduces PolicyConstants for policy names.
2025-08-11 19:47:12 +02:00
..
UserProfileController.cs Enhance AdminOnly authorization policy 2025-08-11 19:47:12 +02:00