mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-05-09 14:03:19 +00:00
fix php error when calling mayEditVersion()
This commit is contained in:
parent
e102607716
commit
d01e43291c
|
|
@ -80,7 +80,7 @@ if (!isset($settings->_editOnlineFileTypes) || !is_array($settings->_editOnlineF
|
|||
|
||||
/* Create object for checking access to certain operations */
|
||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||
if(!$accessop->mayEditVersion($version)) {
|
||||
if(!$accessop->mayEditVersion($document, $version)) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user