mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
게시판의 '작성 글 보기' 에서 닉네임과 상관없이 항상 해당 회원의 게시물만 출력될 수 있도록 개선
('작성 글 보기' 이용시 다른 회원의 게시물도 출력될 수 있는 문제 수정)
This commit is contained in:
parent
c728250fd7
commit
eb17819ce0
2 changed files with 19 additions and 36 deletions
|
|
@ -175,7 +175,9 @@ class boardView extends board
|
|||
if(in_array($signupFormElement->title, $search_option))
|
||||
{
|
||||
if($signupFormElement->isPublic == 'N')
|
||||
{
|
||||
unset($search_option[$signupFormElement->name]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Context::set('search_option', $search_option);
|
||||
|
|
@ -491,17 +493,22 @@ class boardView extends board
|
|||
// get the search target and keyword
|
||||
$args->search_target = Context::get('search_target');
|
||||
$args->search_keyword = Context::get('search_keyword');
|
||||
|
||||
$search_option = Context::get('search_option');
|
||||
if($search_option==FALSE)
|
||||
|
||||
if(!$search_option = Context::get('search_option'))
|
||||
{
|
||||
$search_option = $this->search_option;
|
||||
}
|
||||
if(isset($search_option[$args->search_target])==FALSE)
|
||||
if(!isset($search_option[$args->search_target]))
|
||||
{
|
||||
$args->search_target = '';
|
||||
}
|
||||
|
||||
|
||||
// set member_srl for view particular member's document
|
||||
if($this->module_info->use_anonymous !== 'Y')
|
||||
{
|
||||
$args->member_srl = Context::get('member_srl');
|
||||
}
|
||||
|
||||
// if the category is enabled, then get the category
|
||||
if($this->module_info->use_category=='Y')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue