Fix #2119 being allowed to set 0 as category_srl

This commit is contained in:
Kijin Sung 2023-06-19 21:55:24 +09:00
parent b8465cc022
commit 73c60b1297
2 changed files with 29 additions and 1 deletions

View file

@ -926,7 +926,7 @@ class BoardView extends Board
/**
* add JS filters
**/
if(Context::get('logged_info')->is_admin == 'Y' || $this->module_info->allow_no_category == 'Y')
if($this->grant->manager || $this->module_info->allow_no_category == 'Y')
{
Context::addJsFilter($this->module_path.'tpl/filter', 'insert_admin.xml');
}