fix access check

This commit is contained in:
Uwe Steinmann 2016-03-18 22:48:13 +01:00
parent d8e0ba840d
commit b8fc40f60f

View File

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