diff --git a/BO/Controllers/BOBaseController.cs b/BO/Controllers/BOBaseController.cs index 8615a5b..282e17a 100644 --- a/BO/Controllers/BOBaseController.cs +++ b/BO/Controllers/BOBaseController.cs @@ -25,6 +25,7 @@ namespace NP.BO.Controllers ViewBag.ckmainlmenu = CookieGet("leftmenutoggle", "0"); ViewBag.Menus = GetMENUS.Where(w => w.usertype == base.SUserInfo.UserType).ToList(); ViewBag.IsSubAdmin96 = SUserInfo.IsSubAdmin96; + ViewBag.IsSubAdmin97 = SUserInfo.IsSubAdmin97; //로그인을 위해서 다 https로 돌림 if (!Request.IsSecureConnection && GetConfig("usessl") == "Y") diff --git a/BO/Controllers/croomController.cs b/BO/Controllers/croomController.cs index b240c3d..60b1ffb 100644 --- a/BO/Controllers/croomController.cs +++ b/BO/Controllers/croomController.cs @@ -528,6 +528,10 @@ namespace NP.BO.Controllers { vm.CM = Dao.Get("cm.cms", new System.Collections.Hashtable { { "cmno", vm.intval } }).First(); vm.IsAdmin = SUserInfo.IsAdmin; + if (ViewBag.IsSubAdmin97) + { + vm.tabidx = 4; + } switch (vm.tabidx) { case 0: diff --git a/BO/Views/croom/grade.cshtml b/BO/Views/croom/grade.cshtml index f9c3972..b210ead 100644 --- a/BO/Views/croom/grade.cshtml +++ b/BO/Views/croom/grade.cshtml @@ -16,21 +16,25 @@ @Html.Partial("grade" + (Model.tabidx==2 || Model.tabidx == 3 ? 2 : Model.tabidx), Model) diff --git a/Model/Users.cs b/Model/Users.cs index a18dfd8..821362e 100644 --- a/Model/Users.cs +++ b/Model/Users.cs @@ -305,6 +305,10 @@ namespace NP.Model /// 관리자(usertype:96) /// public bool IsSubAdmin96 { get { return UserType == 96; } } + /// + /// 관리자(usertype:97:과제채점강사) + /// + public bool IsSubAdmin97 { get { return UserType == 97; } } } ///