mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user