mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Add option to allow selecting no category
관리자 이외의 사용자가 글을 쓸 때 분류를 선택하지 않아도 되도록 허용하는 옵션 추가 (기본값: 허용하지 않음)
This commit is contained in:
parent
2c64e16bd2
commit
eb3108b446
5 changed files with 19 additions and 2 deletions
|
|
@ -825,8 +825,14 @@ class boardView extends board
|
|||
/**
|
||||
* add JS filters
|
||||
**/
|
||||
if(Context::get('logged_info')->is_admin=='Y') Context::addJsFilter($this->module_path.'tpl/filter', 'insert_admin.xml');
|
||||
else Context::addJsFilter($this->module_path.'tpl/filter', 'insert.xml');
|
||||
if(Context::get('logged_info')->is_admin == 'Y' || $this->module_info->allow_no_category == 'Y')
|
||||
{
|
||||
Context::addJsFilter($this->module_path.'tpl/filter', 'insert_admin.xml');
|
||||
}
|
||||
else
|
||||
{
|
||||
Context::addJsFilter($this->module_path.'tpl/filter', 'insert.xml');
|
||||
}
|
||||
|
||||
$oSecurity = new Security();
|
||||
$oSecurity->encodeHTML('category_list.text', 'category_list.title');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue