Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

71698: Merge V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3)
      71693: MNT-11264 Workflow public API for tasks is returning other users tasks
        Revert commit 69670: this was not a bug and the previous behaviour was the right one. This will fix failures in TaskWorkflowApiTest


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@73194 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Samuel Langlois
2014-06-05 16:13:56 +00:00
parent 1c5666c4ba
commit 484ca8fcfa

View File

@@ -162,11 +162,6 @@ public class TasksImpl extends WorkflowRestImpl implements Tasks
String status = propertyWalker.getProperty("status", WhereClauseParser.EQUALS);
String assignee = propertyWalker.getProperty("assignee", WhereClauseParser.EQUALS);
// MNT-11264 Workflow public API for tasks is returning other users tasks
if (assignee == null)
{
assignee = AuthenticationUtil.getRunAsUser();
}
String assigneeLike = propertyWalker.getProperty("assignee", WhereClauseParser.MATCHES);
String owner = propertyWalker.getProperty("owner", WhereClauseParser.EQUALS);
String ownerLike = propertyWalker.getProperty("owner", WhereClauseParser.MATCHES);