mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- 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:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user