$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")); } $users = $dms->getAllUsers($settings->_sortUsersInList); if (is_bool($users)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } $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('selrole', $selrole); $view->setParam('allusers', $users); $view->setParam('allroles', $roles); $view->setParam('accessobject', $accessop); $view($_GET); }