mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
issue 389 when secret document modified, document status change to PUBLIC
this bug fixed git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9594 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2393eb6d00
commit
d1c31a6134
1 changed files with 3 additions and 1 deletions
|
|
@ -254,8 +254,10 @@ class documentController extends document {
|
|||
**/
|
||||
function updateDocument($source_obj, $obj) {
|
||||
if(!$source_obj->document_srl || !$obj->document_srl) return new Object(-1,'msg_invalied_request');
|
||||
if(!$obj->status && $obj->is_secret == 'Y') $obj->status = 'SECRET';
|
||||
if(!$obj->status) $obj->status = 'PUBLIC';
|
||||
|
||||
// Call a trigger (before)
|
||||
if(!$obj->status) $obj->status = $source_obj->status;
|
||||
$output = ModuleHandler::triggerCall('document.updateDocument', 'before', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue