Implemented authorization for other controllers

This commit is contained in:
2025-10-17 18:52:25 +02:00
parent ec6633573c
commit 6867899268
4 changed files with 8 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ using System.Text;
using Microsoft.AspNetCore.Authorization;
using System.Text.Json;
[Authorize]
[Authorize(Roles = "CanManageUsers")]
[Route("[controller]")]
public class UsersController : Controller
{