<단순작업>

1. 개발용으로 단순변경 - {스마트검색 단순 url접근 가능 막기}
This commit is contained in:
zdrcft 2024-01-16 01:34:20 +00:00
parent 091c8650dd
commit 06382f5361
1 changed files with 3 additions and 0 deletions

View File

@ -772,6 +772,9 @@ namespace NP.FO.Controllers
public ActionResult SmartSearch(VMCourse vm) public ActionResult SmartSearch(VMCourse vm)
{ {
if (SUserInfo.UserNo == 0) {
return RedirectToAction(nameof(HomeController.Index), "Home");
}
vm.ComCodes = GetComCodes("studyplace"); vm.ComCodes = GetComCodes("studyplace");
vm.CMsEtc = Dao.Get<CM>("cm.cgetc", new System.Collections.Hashtable() { { "cgcode", "2" } });//cgcode = 기타교육 // 기타교육 cgcode 바뀌면 파라미터도 변경해야함 vm.CMsEtc = Dao.Get<CM>("cm.cgetc", new System.Collections.Hashtable() { { "cgcode", "2" } });//cgcode = 기타교육 // 기타교육 cgcode 바뀌면 파라미터도 변경해야함
vm.CM = Dao.Get<CM>("cm.cms", new System.Collections.Hashtable()).First(); vm.CM = Dao.Get<CM>("cm.cms", new System.Collections.Hashtable()).First();