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