$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")); } $workflows = $dms->getAllWorkflows(); if (is_bool($workflows)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } $workflowstates = $dms->getAllWorkflowStates(); if (is_bool($workflowstates)) { UI::exitError(getMLText("admin_tools"),getMLText("internal_error")); } if(isset($_GET['workflowid']) && $_GET['workflowid']) { $selworkflow = $dms->getWorkflow($_GET['workflowid']); } else { $selworkflow = null; } if($view) { $view->setParam('selworkflow', $selworkflow); $view->setParam('allworkflows', $workflows); $view->setParam('allworkflowstates', $workflowstates); $view->setParam('enablehiddenrevapp', $settings->_enableHiddenRevApp); $view->setParam('accessobject', $accessop); $view($_GET); exit; }