keep source

This commit is contained in:
nakorn
2022-04-19 14:32:50 +07:00
parent 94bf0709d1
commit 32280778e6

View File

@@ -39,6 +39,19 @@ namespace TodoAPI2.Controllers
{
MyHelper.get_login(HttpContext, emp, Response);
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
if(HttpContext.Request.Cookies["emp_id"] == "152" // ผอ กลาง
|| HttpContext.Request.Cookies["emp_id"] == "180" // ประยูร สีสด
|| HttpContext.Request.Cookies["emp_id"] == "107" // ประเดิมสวัสดิ์
|| HttpContext.Request.Cookies["emp_id"] == "70" // อังคณา
|| HttpContext.Request.Cookies["emp_id"] == "69" // สาริกา
|| HttpContext.Request.Cookies["emp_id"] == "64" // ขวัญพิชา
|| HttpContext.Request.Cookies["emp_id"] == "161" // อุบลวรรณ
)
{
return View();
}
return View("eva_self_review_close");
//return View();
}