mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +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);
|
||||
|
||||
// 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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user