diff --git a/source/java/org/alfresco/repo/workflow/WorkflowObjectFactory.java b/source/java/org/alfresco/repo/workflow/WorkflowObjectFactory.java index 2636252624..a22e5322dc 100644 --- a/source/java/org/alfresco/repo/workflow/WorkflowObjectFactory.java +++ b/source/java/org/alfresco/repo/workflow/WorkflowObjectFactory.java @@ -334,7 +334,6 @@ public class WorkflowObjectFactory public List filterByDomain(Collection values, final Function processKeyGetter) { - final boolean enabled = tenantService.isEnabled(); final String currentDomain = tenantService.getCurrentUserDomain(); return CollectionUtils.filter(values, new Filter() { @@ -342,18 +341,7 @@ public class WorkflowObjectFactory { String key = processKeyGetter.apply(value); String domain = tenantService.getDomain(key, false); - if(enabled) - { - if(currentDomain.equals(domain)) - { - return true; // The domains match so include. - } - } - else if(domain==null) - { - return true; // In single-tenant mode only return items with no domain. - } - return false; + return (currentDomain.equals(domain)); } }); }