mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
pass $document ot mayRemoveVersion()
This commit is contained in:
parent
ab16c6b539
commit
b118b00536
|
@ -47,7 +47,7 @@ if (!is_object($document)) {
|
||||||
$accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings);
|
$accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings);
|
||||||
|
|
||||||
// verify if document may be reviewed
|
// verify if document may be reviewed
|
||||||
if (!$accessop->mayRemoveVersion()){
|
if (!$accessop->mayRemoveVersion($document)){
|
||||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user