checkout can be canceled if file disappeared, is obsolete

This commit is contained in:
Uwe Steinmann 2022-11-09 13:31:10 +01:00
parent 2ce2fd07fe
commit e422fcf67a

View File

@ -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"));
}