mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Fix #1714 분류 선택이후 분류를 미지정으로 글 수정시 권한이 없다는 문제 고침
This commit is contained in:
parent
3d2987023c
commit
8c1fda8815
1 changed files with 1 additions and 1 deletions
|
|
@ -811,7 +811,7 @@ class documentController extends document
|
||||||
$category_list = DocumentModel::getCategoryList($obj->module_srl);
|
$category_list = DocumentModel::getCategoryList($obj->module_srl);
|
||||||
if(!$category_list[$obj->category_srl]) $obj->category_srl = 0;
|
if(!$category_list[$obj->category_srl]) $obj->category_srl = 0;
|
||||||
|
|
||||||
if(!$category_list[$obj->category_srl]->grant)
|
if($obj->category_srl > 0 && !$category_list[$obj->category_srl]->grant)
|
||||||
{
|
{
|
||||||
return new BaseObject(-1, 'msg_not_permitted');
|
return new BaseObject(-1, 'msg_not_permitted');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue