mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-11 06:22:20 +09:00
Fix #2238 add option to control whether to allow redeclaring documents
This commit is contained in:
parent
087b2587bf
commit
fa756b5169
7 changed files with 37 additions and 7 deletions
|
|
@ -113,7 +113,15 @@ class DocumentAdminController extends Document
|
|||
$args = new stdClass();
|
||||
$args->document_srl = $document_srl;
|
||||
$output = executeQuery('document.deleteDeclaredDocuments', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
if (!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
$output = executeQuery('document.deleteDocumentDeclaredLog', $args);
|
||||
if (!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue