From 9db48ea2d10d1ca87c4ef82cc6d9e6e74e0571e4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 11 Dec 2014 21:11:07 +0100 Subject: [PATCH] add missing access object (Bug #191) --- out/out.ReviewDocument.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/out/out.ReviewDocument.php b/out/out.ReviewDocument.php index d94ffeec4..9f1e1e7d7 100644 --- a/out/out.ReviewDocument.php +++ b/out/out.ReviewDocument.php @@ -23,6 +23,7 @@ include("../inc/inc.Utils.php"); include("../inc/inc.DBInit.php"); include("../inc/inc.Language.php"); include("../inc/inc.ClassUI.php"); +include("../inc/inc.ClassAccessOperation.php"); include("../inc/inc.Authentication.php"); if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) { @@ -65,9 +66,13 @@ if(!$reviews) { UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("no_action")); } +/* Create object for checking access to certain operations */ +$accessop = new SeedDMS_AccessOperation($document, $user, $settings); + $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'folder'=>$folder, 'document'=>$document, 'version'=>$content)); if($view) { + $view->setParam('accessobject', $accessop); $view->show(); exit; }