03-17-2011 11:40 AM
06-23-2011 07:39 AM
public boolean isTaskEditable(WorkflowTask task, String username)
{
// if the task is complete it is not editable
if (task.getState() == WorkflowTaskState.COMPLETED)
{
return false;
}
if (isUserOwnerOrInitiator(task, username))
{
// editable if the current user is the task owner or initiator
return true;
}
if (task.getProperties().get(ContentModel.PROP_OWNER) == null)
{
// if the user is not the owner or initiator check whether they are
// a member of the pooled actors for the task (if it has any)
return isUserInPooledActors(task, username);
}
else
{
// if the task has an owner and the user is not the owner
// or the initiator do not allow editing
return false;
}
}
/opt/alfresco-3.4.d/tomcat/webapps/share/components/workflow$ diff workflow-form.js.orig workflow-form.js
409c409
< if (task.isEditable)
—
> if (task.owner.userName == Alfresco.constants.USERNAME)
531c531
< if (task.isEditable)
—
> if (task.owner.userName == Alfresco.constants.USERNAME)
06-23-2011 07:45 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.