From 25c94b39a619769de4c78bd012cd480fc32cc0de Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Thu, 16 Jul 2009 10:45:35 +0000 Subject: [PATCH] Merged V3.2 to HEAD 15220: Fixed ALFCOM-3222: RuleService check for copy doesn't handle permissions Removed svn:mergeinfo git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15223 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/repo/rule/RuleServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/rule/RuleServiceImpl.java b/source/java/org/alfresco/repo/rule/RuleServiceImpl.java index ddfa35ce3c..3481bf3847 100644 --- a/source/java/org/alfresco/repo/rule/RuleServiceImpl.java +++ b/source/java/org/alfresco/repo/rule/RuleServiceImpl.java @@ -983,7 +983,9 @@ public class RuleServiceImpl implements RuleService, RuntimeRuleService private boolean checkForCopy(Set executedRules, NodeRef actionedUponNodeRef, Rule rule) { boolean result = true; - if (this.nodeService.exists(actionedUponNodeRef) == true && this.nodeService.hasAspect(actionedUponNodeRef, ContentModel.ASPECT_COPIEDFROM) == true) + if (this.nodeService.exists(actionedUponNodeRef) + && this.permissionService.hasPermission(actionedUponNodeRef, PermissionService.READ).equals(AccessStatus.ALLOWED) + && this.nodeService.hasAspect(actionedUponNodeRef, ContentModel.ASPECT_COPIEDFROM) == true) { if (logger.isDebugEnabled() == true) {