From 8549fd481120954db2fb23ac02a3943cab7fb6bf Mon Sep 17 00:00:00 2001
From: esantangelo <enzo020895@gmail.com>
Date: Wed, 9 Dec 2020 18:48:09 -0300
Subject: [PATCH] commit

---
 Tsi1.Api/Tsi1.Api/Controllers/UserController.cs   | 2 +-
 Tsi1.Api/Tsi1.BusinessLayer/Dtos/UserDetailDto.cs | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs b/Tsi1.Api/Tsi1.Api/Controllers/UserController.cs
index 323eee2..7d75e33 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 1a1c912..62a5cda 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; }
-- 
GitLab