From ab4304d01c6bb055e277cfd2efe00b8319153f67 Mon Sep 17 00:00:00 2001 From: lch Date: Mon, 12 Jul 2021 04:28:28 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B3=BC=EC=A0=9C=EC=B1=84=EC=A0=90=EA=B0=95?= =?UTF-8?q?=EC=82=AC=20(97)>=EA=B5=90=EC=9C=A1=EC=9A=B4=EC=98=81>=EC=84=B1?= =?UTF-8?q?=EC=A0=81=EC=B2=98=EB=A6=AC=20:=20"=EA=B3=BC=EC=A0=9C=20?= =?UTF-8?q?=ED=83=AD=EB=A7=8C=20=EC=B6=9C=EB=A0=A5=20(=EA=B6=8C=ED=95=9C?= =?UTF-8?q?=EB=B2=88=ED=98=B8:=2097)=20=20-=20=EC=A2=85=ED=95=A9/=EC=B6=9C?= =?UTF-8?q?=EC=84=9D/=EC=A7=84=ED=96=89=ED=8F=89=EA=B0=80/=EC=B5=9C?= =?UTF-8?q?=EC=A2=85=ED=8F=89=EA=B0=80/=ED=86=A0=EB=A1=A0=20=EB=AA=A8?= =?UTF-8?q?=EB=91=90=20=EC=88=A8=EA=B9=80"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BO/Controllers/BOBaseController.cs | 1 + BO/Controllers/croomController.cs | 4 ++++ BO/Views/croom/grade.cshtml | 22 +++++++++++++--------- Model/Users.cs | 4 ++++ 4 files changed, 22 insertions(+), 9 deletions(-) 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; } } } ///