ACS-4064: fix for linking from a folder with inherited rules (#1577)

* ACS-4064: fix for linking from a folder with inherited rules

* ACS-4064: fix failing tests and add E2E
This commit is contained in:
George Evangelopoulos
2022-11-24 15:48:27 +00:00
committed by GitHub
parent f96304bd28
commit 17c09efb93
5 changed files with 73 additions and 6 deletions

View File

@@ -459,7 +459,13 @@ public class RuleServiceImpl
public boolean hasRules(NodeRef nodeRef)
{
return getRules(nodeRef).size() != 0;
}
}
@Override
public boolean hasNonInheritedRules(NodeRef nodeRef)
{
return getRules(nodeRef, false).size() != 0;
}
@Override
public List<Rule> getRules(NodeRef nodeRef)

View File

@@ -165,6 +165,15 @@ public interface RuleService
@Auditable(parameters = {"nodeRef"})
public boolean hasRules(NodeRef nodeRef);
/**
* Indicates whether the node in question has any non-inherited rules associated with it.
*
* @param nodeRef the node reference
* @return true if the node has rules associated, false otherwise
*/
@Auditable(parameters = {"nodeRef"})
public boolean hasNonInheritedRules(NodeRef nodeRef);
/**
* Get all the rules associated with an actionable node, including those
* inherited from parents.