mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
create AccessOperation object
This commit is contained in:
parent
a53cd4b0cd
commit
0205e8a08e
|
@ -27,6 +27,7 @@ require_once("inc/inc.Init.php");
|
|||
require_once("inc/inc.Extension.php");
|
||||
require_once("inc/inc.DBInit.php");
|
||||
require_once("inc/inc.ClassUI.php");
|
||||
require_once("inc/inc.ClassAccessOperation.php");
|
||||
require_once("inc/inc.Authentication.php");
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
|
@ -35,6 +36,8 @@ if (!$user->isAdmin()) {
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
|
||||
|
||||
$attrdefs = $dms->getAllAttributeDefinitions();
|
||||
|
||||
if(isset($_GET['attrdefid']) && $_GET['attrdefid']) {
|
||||
|
@ -44,6 +47,7 @@ if(isset($_GET['attrdefid']) && $_GET['attrdefid']) {
|
|||
}
|
||||
|
||||
if($view) {
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view->setParam('attrdefs', $attrdefs);
|
||||
$view->setParam('selattrdef', $selattrdef);
|
||||
$view->setParam('showtree', showtree());
|
||||
|
|
Loading…
Reference in New Issue
Block a user