Skip to content

Commit ce8e977

Browse files
authored
Restricted plugin and school-system management endpoints to administrators (#210)
1 parent d1f90d0 commit ce8e977

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/Schuly.API/Controllers/PluginsController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace Schuly.API.Controllers
1010
{
1111
[ApiController]
1212
[Route("api/[controller]")]
13+
[Authorize(Roles = "Administrator")]
1314
public class PluginsController(IMediator mediator, PluginSchedulerRegistry scheduler, PluginManager plugins) : ControllerBase
1415
{
1516
[HttpGet]

src/Schuly.API/Controllers/SchoolSystemsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Schuly.API.Controllers
99
{
1010
[ApiController]
1111
[Route("api/[controller]")]
12-
[Authorize]
12+
[Authorize(Roles = "Administrator")]
1313
public class SchoolSystemsController(IMediator mediator) : ControllerBase
1414
{
1515
[HttpGet]

0 commit comments

Comments
 (0)