From b8fc40f60fefe8969677fbbe6b53cfaf27c2a488 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 18 Mar 2016 22:48:13 +0100 Subject: [PATCH] fix access check --- out/out.ReviseDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/out/out.ReviseDocument.php b/out/out.ReviseDocument.php index 3db448da8..66792e9b6 100644 --- a/out/out.ReviseDocument.php +++ b/out/out.ReviseDocument.php @@ -63,7 +63,7 @@ if ($latestContent->getVersion()!=$version) { $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); // verify if document maybe revised -if (!$document->mayRevise()){ +if (!$accessop->mayRevise($document)){ UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied")); }