From b118b00536d0974ea9ac9a07554f36918a624e82 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 18 Oct 2023 19:04:02 +0200 Subject: [PATCH] pass $document ot mayRemoveVersion() --- op/op.RemoveVersion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op/op.RemoveVersion.php b/op/op.RemoveVersion.php index 146b41f2a..6a47def84 100644 --- a/op/op.RemoveVersion.php +++ b/op/op.RemoveVersion.php @@ -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")); }