mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 21:42:57 +09:00
회원정보에서 비공개인 항목은 검색 옵션에서 제거
This commit is contained in:
parent
0df478c14f
commit
b91e059a47
1 changed files with 10 additions and 0 deletions
|
|
@ -169,6 +169,16 @@ class boardView extends board
|
||||||
if($val->search == 'Y') $search_option['extra_vars'.$val->idx] = $val->name;
|
if($val->search == 'Y') $search_option['extra_vars'.$val->idx] = $val->name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// remove a search option that is not public in member config
|
||||||
|
$memberConfig = getModel('module')->getModuleConfig('member');
|
||||||
|
foreach($memberConfig->signupForm as $signupFormElement)
|
||||||
|
{
|
||||||
|
if(in_array($signupFormElement->title, $search_option))
|
||||||
|
{
|
||||||
|
if($signupFormElement->isPublic == 'N')
|
||||||
|
unset($search_option[$signupFormElement->name]);
|
||||||
|
}
|
||||||
|
}
|
||||||
Context::set('search_option', $search_option);
|
Context::set('search_option', $search_option);
|
||||||
|
|
||||||
$oDocumentModel = getModel('document');
|
$oDocumentModel = getModel('document');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue