backend: Extend issue and proposal access to admins
This commit is contained in:
1 parent
34f2d57bd3
commit
ea3de2e444
16 files changed
+184
-127
No files matched your search
@@ -6,9 +6,9 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Helpdesk.Api.Controllers;
|
||||
|
||||
/// <summary>Statistiky pro vedení školy. Období v UTC zahrnuje začátek a vylučuje konec.</summary>
|
||||
/// <summary>Statistiky pro vedení školy a administrátory. Období v UTC zahrnuje začátek a vylučuje konec.</summary>
|
||||
[ApiController]
|
||||
[Authorize(Roles = Roles.Management)]
|
||||
[Authorize(Roles = Roles.ManagementOrAdmin)]
|
||||
[ResponseCache(NoStore = true, Location = ResponseCacheLocation.None)]
|
||||
[Route(ApiRoutes.V1 + "/statistics")]
|
||||
[ProducesResponseType<ProblemDetails>(StatusCodes.Status400BadRequest)]
|
||||
|
||||
Reference in new issue
Block a user