mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +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
|
|
@ -3276,7 +3276,14 @@ class DocumentController extends Document
|
|||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
if(Context::get('prevent_redeclare') !== 'Y')
|
||||
{
|
||||
$output = executeQuery('document.deleteDocumentDeclaredLog', $args);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
$obj->return_message = 'success_declare_canceled';
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue