mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
checkout can be canceled if file disappeared, is obsolete
This commit is contained in:
parent
2ce2fd07fe
commit
e422fcf67a
|
@ -38,7 +38,8 @@ $documentid = $_POST["documentid"];
|
|||
$document = $dms->getDocument($documentid);
|
||||
|
||||
$checkoutstatus = $document->checkOutStatus();
|
||||
if($checkoutstatus != 3 && empty($settings->_enableCancelCheckout)) {
|
||||
/* Check out of files which has been changed, can only be canceled if allowed in the configuration */
|
||||
if($checkoutstatus == 0 && empty($settings->_enableCancelCheckout)) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("operation_disallowed"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user