mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Implemented authorization for other controllers
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user