Skip to content
Snippets Groups Projects
Commit 1131c49b authored by Lucca Santangelo's avatar Lucca Santangelo
Browse files

athorize GetStudents and GetProfessors

parent c83a1b17
No related branches found
No related tags found
No related merge requests found
Pipeline #10663 passed
......@@ -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()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment