pass $document to mayApprove()

This commit is contained in:
Uwe Steinmann 2016-03-23 16:54:03 +01:00
parent 50cfb869e2
commit 353be72dc9

View File

@ -63,7 +63,7 @@ if ($latestContent->getVersion()!=$version) {
}
// verify if document may be approved
if (!$accessop->mayApprove()){
if (!$accessop->mayApprove($document)){
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
}