- Added action evaluator to start workflow action so the guest user can not start workflows

- Handled the case in the start workflow wizard where there are no workflows to start (info message displayed)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3667 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2006-09-04 09:57:29 +00:00
parent 42b84cb75c
commit be07f90d50
6 changed files with 83 additions and 2 deletions

View File

@@ -447,6 +447,17 @@ public class StartWorkflowWizard extends BaseWizardBean
new String[] {workflowName});
}
/**
* Determines whether there are any workflows to start
* @return
*/
public boolean getHasStartableWorkflows()
{
// get the list of startable workflow, this will intialise the list if necessary
List<SelectItem> workflows = getStartableWorkflows();
return (workflows.size() > 0);
}
/**
* Returns a list of workflows that can be started.
*