mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
allow to cancel checkout if document was not modified
This commit is contained in:
parent
020e307240
commit
64a5ea3d90
|
@ -37,7 +37,8 @@ if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval(
|
|||
$documentid = $_POST["documentid"];
|
||||
$document = $dms->getDocument($documentid);
|
||||
|
||||
if(empty($settings->_enableCancelCheckout)) {
|
||||
$checkoutstatus = $document->checkOutStatus();
|
||||
if($checkoutstatus != 3 && empty($settings->_enableCancelCheckout)) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("operation_disallowed"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user