$dms, 'user'=>$user)); $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); if (!$accessop->check_view_access($view, $_GET)) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } $roles = $dms->getAllRoles(); if (is_bool($roles)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } if(isset($_GET['roleid']) && $_GET['roleid']) { $selrole = $dms->getRole($_GET['roleid']); } else { $selrole = null; } if($view) { $view->setParam('settings', $settings); $view->setParam('selrole', $selrole); $view->setParam('allroles', $roles); $view->setParam('accessobject', $accessop); $view($_GET); }