pass $document ot mayRemoveVersion()

This commit is contained in:
Uwe Steinmann 2023-10-18 19:04:02 +02:00
parent ab16c6b539
commit b118b00536

View File

@ -47,7 +47,7 @@ if (!is_object($document)) {
$accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings);
// verify if document may be reviewed
if (!$accessop->mayRemoveVersion()){
if (!$accessop->mayRemoveVersion($document)){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}