diff --git a/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs b/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs index 323eee245f01e882cc3a68b3d0c77d265fc279a3..7d75e339cea82e392717d6b31dbbb3fb7a9140f5 100644 --- a/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs +++ b/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs @@ -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() { diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/UserDetailDto.cs b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/UserDetailDto.cs index 1a1c9120140c892fe8aeed2c9f05ea479088e5a5..62a5cda37c9697c664a40a50e7846c3de9cf82c5 100644 --- a/Tsi1.Api/Tsi1.BusinessLayer/Dtos/UserDetailDto.cs +++ b/Tsi1.Api/Tsi1.BusinessLayer/Dtos/UserDetailDto.cs @@ -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; }