mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
익명글 포함 검색 권한 체크를 documentAdminView에서 처리
This commit is contained in:
parent
79b9cc27ae
commit
9460f8ee7c
2 changed files with 10 additions and 6 deletions
|
|
@ -43,6 +43,15 @@ class documentAdminView extends document
|
||||||
|
|
||||||
$args->search_target = Context::get('search_target'); // /< search (title, contents ...)
|
$args->search_target = Context::get('search_target'); // /< search (title, contents ...)
|
||||||
$args->search_keyword = Context::get('search_keyword'); // /< keyword to search
|
$args->search_keyword = Context::get('search_keyword'); // /< keyword to search
|
||||||
|
if ($args->search_target === 'member_srl')
|
||||||
|
{
|
||||||
|
$logged_info = Context::get('logged_info');
|
||||||
|
if ($logged_info->is_admin === 'Y' || intval($logged_info->member_srl) === intval($args->search_keyword))
|
||||||
|
{
|
||||||
|
$args->member_srl = array(intval($args->search_keyword), intval($args->search_keyword) * -1);
|
||||||
|
unset($args->search_target, $args->search_keyword);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$args->sort_index = 'list_order'; // /< sorting value
|
$args->sort_index = 'list_order'; // /< sorting value
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1405,11 +1405,6 @@ class documentModel extends document
|
||||||
elseif($search_keyword=='temp') $args->statusList = array($this->getConfigStatus('temp'));
|
elseif($search_keyword=='temp') $args->statusList = array($this->getConfigStatus('temp'));
|
||||||
break;
|
break;
|
||||||
case 'member_srl' :
|
case 'member_srl' :
|
||||||
if($logged_info->member_srl == $searchOpt->search_keyword || $logged_info->is_admin == 'Y')
|
|
||||||
{
|
|
||||||
$args->member_srl = -1*$searchOpt->search_keyword . ',' . $searchOpt->search_keyword;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'readed_count' :
|
case 'readed_count' :
|
||||||
case 'voted_count' :
|
case 'voted_count' :
|
||||||
case 'comment_count' :
|
case 'comment_count' :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue