create AccessOperation object

This commit is contained in:
Uwe Steinmann 2019-10-18 12:55:03 +02:00
parent a53cd4b0cd
commit 0205e8a08e

View File

@ -27,6 +27,7 @@ require_once("inc/inc.Init.php");
require_once("inc/inc.Extension.php"); require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php"); require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php"); require_once("inc/inc.ClassUI.php");
require_once("inc/inc.ClassAccessOperation.php");
require_once("inc/inc.Authentication.php"); require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
@ -35,6 +36,8 @@ if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
} }
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$attrdefs = $dms->getAllAttributeDefinitions(); $attrdefs = $dms->getAllAttributeDefinitions();
if(isset($_GET['attrdefid']) && $_GET['attrdefid']) { if(isset($_GET['attrdefid']) && $_GET['attrdefid']) {
@ -44,6 +47,7 @@ if(isset($_GET['attrdefid']) && $_GET['attrdefid']) {
} }
if($view) { if($view) {
$view->setParam('accessobject', $accessop);
$view->setParam('attrdefs', $attrdefs); $view->setParam('attrdefs', $attrdefs);
$view->setParam('selattrdef', $selattrdef); $view->setParam('selattrdef', $selattrdef);
$view->setParam('showtree', showtree()); $view->setParam('showtree', showtree());