keep source
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user