mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
pass document to mayReview and mayApprove
This commit is contained in:
parent
77474bdaee
commit
0e66c6457a
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user