$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")); } if (!isset($_GET["workflowid"]) || !is_numeric($_GET["workflowid"]) || intval($_GET["workflowid"])<1) { UI::exitError(getMLText("workflow_title"),getMLText("invalid_workflow_id")); } $workflow = $dms->getWorkflow(intval($_GET["workflowid"])); if (!is_object($workflow)) { UI::exitError(getMLText("workflow_title"),getMLText("invalid_workflow_id")); } if($view) { $view->setParam('workflow', $workflow); $view->setParam('accessobject', $accessop); $view($_GET); exit; }