pass document to mayReview and mayApprove

This commit is contained in:
Uwe Steinmann 2023-06-19 20:57:52 +02:00
parent 77474bdaee
commit 0e66c6457a
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,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" => $document->getName())),getMLText("access_denied"));
}

View File

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