Skip to content
Snippets Groups Projects
Commit 8549fd48 authored by esantangelo's avatar esantangelo
Browse files

commit

parent 2c300281
No related branches found
No related tags found
No related merge requests found
Pipeline #10632 passed
......@@ -317,7 +317,7 @@ namespace Tsi1.Api.Controllers
return Ok(result.Data);
}
[Authorize(Roles = UserTypes.FacultyAdmin)]
[Authorize(Roles = UserTypes.FacultyAdmin + ", " + UserTypes.Professor)]
[HttpGet("GetProfessors")]
public async Task<IActionResult> GetProfessors()
{
......
......@@ -16,6 +16,8 @@ namespace Tsi1.BusinessLayer.Dtos
public string LastName { get; set; }
public string Email { get; set; }
public StudentPreviewDto Student { get; set; }
public ProfessorPreviewDto Professor { get; set; }
......
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