Fix from Roy to recent RuleServiceImpl changes to use the correct NodeService (i.e. non-permission protected version)

- as per: http://forums.alfresco.com/viewtopic.php?p=9772#9772

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3538 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-08-17 15:27:46 +00:00
parent c4f6eec4ae
commit 46acb964cc

View File

@@ -330,7 +330,7 @@ public class RuleServiceImpl implements RuleService, RuntimeRuleService
if (this.runtimeNodeService.exists(nodeRef) == true && checkNodeType(nodeRef) == true) if (this.runtimeNodeService.exists(nodeRef) == true && checkNodeType(nodeRef) == true)
{ {
if (includeInherited == true && this.nodeService.hasAspect(nodeRef, RuleModel.ASPECT_IGNORE_INHERITED_RULES) == false) if (includeInherited == true && this.runtimeNodeService.hasAspect(nodeRef, RuleModel.ASPECT_IGNORE_INHERITED_RULES) == false)
{ {
// Get any inherited rules // Get any inherited rules
for (Rule rule : getInheritedRules(nodeRef, ruleTypeName, null)) for (Rule rule : getInheritedRules(nodeRef, ruleTypeName, null))
@@ -441,7 +441,7 @@ public class RuleServiceImpl implements RuleService, RuntimeRuleService
{ {
List<Rule> inheritedRules = new ArrayList<Rule>(); List<Rule> inheritedRules = new ArrayList<Rule>();
if (this.nodeService.hasAspect(nodeRef, RuleModel.ASPECT_IGNORE_INHERITED_RULES) == false) if (this.runtimeNodeService.hasAspect(nodeRef, RuleModel.ASPECT_IGNORE_INHERITED_RULES) == false)
{ {
// Create the visited nodes set if it has not already been created // Create the visited nodes set if it has not already been created
if (visitedNodeRefs == null) if (visitedNodeRefs == null)