diff --git a/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs b/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs index 7d75e339cea82e392717d6b31dbbb3fb7a9140f5..efdcc334c20069c783cde602141edc73bcbc608f 100644 --- a/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs +++ b/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs @@ -301,7 +301,7 @@ namespace Tsi1.Api.Controllers return Ok(result.Data); } - [Authorize(Roles = UserTypes.FacultyAdmin)] + [Authorize(Roles = UserTypes.FacultyAdmin + ", " + UserTypes.Professor + ", " + UserTypes.Student)] [HttpGet("GetStudents")] public async Task<IActionResult> GetStudents() { @@ -317,7 +317,7 @@ namespace Tsi1.Api.Controllers return Ok(result.Data); } - [Authorize(Roles = UserTypes.FacultyAdmin + ", " + UserTypes.Professor)] + [Authorize(Roles = UserTypes.FacultyAdmin + ", " + UserTypes.Professor + ", " + UserTypes.Student)] [HttpGet("GetProfessors")] public async Task<IActionResult> GetProfessors() {