mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 22:02:13 +09:00
Merge pull request #802 from sejin7940/write_admin
관리자가 글 쓸때는 분류를 선택 안 해도 등록되도록 (공지글을 쓸때를 위해) 개선
This commit is contained in:
commit
b6bb0ca783
2 changed files with 19 additions and 1 deletions
|
|
@ -639,7 +639,8 @@ class boardView extends board
|
|||
/**
|
||||
* add JS filters
|
||||
**/
|
||||
Context::addJsFilter($this->module_path.'tpl/filter', 'insert.xml');
|
||||
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');
|
||||
|
||||
$oSecurity = new Security();
|
||||
$oSecurity->encodeHTML('category_list.text', 'category_list.title');
|
||||
|
|
|
|||
17
modules/board/tpl/filter/insert_admin.xml
Normal file
17
modules/board/tpl/filter/insert_admin.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<filter name="insert" module="board" act="procBoardInsertDocument">
|
||||
<form>
|
||||
<node target="nick_name" required="true" maxlength="20"/>
|
||||
<node target="password" required="true" />
|
||||
<node target="email_address" maxlength="250" filter="email" />
|
||||
<node target="homepage" maxlength="250" filter="url" />
|
||||
<node target="title" required="true" minlength="1" maxlength="250" />
|
||||
<node target="content" required="true" />
|
||||
</form>
|
||||
<response callback_func="completeDocumentInserted">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="mid" />
|
||||
<tag name="document_srl" />
|
||||
<tag name="category_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
Loading…
Add table
Add a link
Reference in a new issue