diff --git a/BO/Controllers/ccController.cs b/BO/Controllers/ccController.cs index a11c262..e2a26b1 100644 --- a/BO/Controllers/ccController.cs +++ b/BO/Controllers/ccController.cs @@ -93,7 +93,7 @@ namespace NP.BO.Controllers { vm.BMOs = Dao.Get("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.bs", ht); diff --git a/Base/Controller/BaseController.cs b/Base/Controller/BaseController.cs index 5c5c169..29ff567 100644 --- a/Base/Controller/BaseController.cs +++ b/Base/Controller/BaseController.cs @@ -134,12 +134,12 @@ namespace NP.Base { //관리자사이트 data = Dao.Get("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"; }