mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 23:11:54 +00:00
Implemented authorization for other controllers
This commit is contained in:
@@ -5,7 +5,7 @@ using Berufsschule_HAM.Models;
|
||||
using System.Text.Json;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
[Authorize]
|
||||
[Authorize(Roles = "CanManageGroups")]
|
||||
[Route("[controller]")]
|
||||
public class GroupsController : Controller
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user