mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-05 01:52:17 +09:00
issue 1019 if not allow write in special category, showed error message
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10315 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1ea53fabbc
commit
5c1edd8868
1 changed files with 4 additions and 0 deletions
|
|
@ -166,6 +166,10 @@ class documentController extends document {
|
||||||
// Set to 0 if the category_srl doesn't exist
|
// Set to 0 if the category_srl doesn't exist
|
||||||
if($obj->category_srl) {
|
if($obj->category_srl) {
|
||||||
$category_list = $oDocumentModel->getCategoryList($obj->module_srl);
|
$category_list = $oDocumentModel->getCategoryList($obj->module_srl);
|
||||||
|
if(!$category_list[$obj->category_srl]->grant)
|
||||||
|
{
|
||||||
|
return new Object(-1, 'msg_not_permitted');
|
||||||
|
}
|
||||||
if(!$category_list[$obj->category_srl]) $obj->category_srl = 0;
|
if(!$category_list[$obj->category_srl]) $obj->category_srl = 0;
|
||||||
}
|
}
|
||||||
// Set the read counts and update order.
|
// Set the read counts and update order.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue