fix #1522 통합검색에서 대상 모듈이 선택되지 않았을 때 검색 제한

- 검색 대상 모듈이 지정되지 않았을 때 전체 모듈을 대상으로 검색하지 않도록 제한 함
This commit is contained in:
bnu 2015-06-09 14:41:43 +09:00
parent 91182cc1fa
commit 829c1c20dd
3 changed files with 12 additions and 1 deletions

View file

@ -36,6 +36,8 @@ class integration_searchView extends integration_search
{
$oFile = getClass('file');
$oModuleModel = getModel('module');
$logged_info = Context::get('logged_info');
// Check permissions
if(!$this->grant->access) return new Object(-1,'msg_not_permitted');
@ -72,6 +74,8 @@ class integration_searchView extends integration_search
else
$module_srl_list = explode(',',$config->target_module_srl);
if(!count($module_srl_list)) return new Object(-1, ($logged_info->is_admin === 'Y') ? 'msg_admin_not_enabled' : 'msg_not_enabled');
// Set a variable for search keyword
$is_keyword = Context::get('is_keyword');
// Set page variables