<기능개선>

1. PMS NO : {4561}
2. (주요)작업내용 
(1) BO/Controllers/ccController.cs
 - 운영 게시판 정보로 변경
(2) Base/Controller/BaseController.cs
 - sysadmin. 로그인시 중복 방지 예외 처리
This commit is contained in:
jity7777 2022-05-17 00:51:51 +00:00
parent be128c7713
commit 2095256937
2 changed files with 9 additions and 5 deletions

View File

@ -93,7 +93,7 @@ namespace NP.BO.Controllers
{
vm.BMOs = Dao.Get<BoardMasterOpening>("board.bmos", GetInt(vm.stringval2));
}
ht.Add("bmno", "21"); // ST :21, LIVE : 13
ht.Add("bmno", "13"); // ST :21, LIVE : 13
//ht.Add("opno", vm.stringval3);
//ht.Add("scc", vm.stringval4);
vm.Boards = Dao.Get<Board>("board.bs", ht);

View File

@ -134,12 +134,12 @@ namespace NP.Base
{
//관리자사이트
data = Dao.Get<NP.Model.Data>("common.check.admin", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "loginkey", SUserInfo.LoginKey }, { "IsDupCheck", IsDupCheck } }).ToList();
if (data.Count() < 1)
if (data.Count() < 1 && SUserInfo.UserNo > 1) // sysadmin 예외
{
CookieClear(null, true);
filterContext.Result = new RedirectResult("/Account/Index?istimeout=true");
}
else if (data.FirstOrDefault().dtype == 0) // 중복 로그인 차단
else if (data.FirstOrDefault().dtype == 0 && SUserInfo.UserNo > 1) // sysadmin 예외 중복 로그인 차단
{
CookieClear(null, true);
filterContext.Result = new RedirectResult("/Account/Index?istimeout=true");
@ -147,10 +147,14 @@ namespace NP.Base
else
{
ViewBag.MainMemoNotCount = data.First().intval;
if (data.FirstOrDefault().time != null && data.FirstOrDefault().time.AddMonths(3) < DateTime.Now)
if (SUserInfo.UserNo > 1) // sysadmin 예외
{
ViewBag.SSPWC = true;
if (data.FirstOrDefault().time != null && data.FirstOrDefault().time.AddMonths(3) < DateTime.Now)
{
ViewBag.SSPWC = true;
}
}
ViewBag.IsStaging = GetConfig("isstaging") == "1";
}