Policy Inheritance issue for nested container component
Hi Everyone,
I have a below use case where I am facing an issue with policies applied to custom container component which has been inherited from AEM core container component.
Problem statement:
We have our AEM editable template pages where container component is used as a parent component to author the custom components on the page. I have a new requirement to create a custom component with title,rte,image and one container component included using data-sly-resource in it. The problem here is when I have created a custom policy for the new custom component 's container included in it. It is inheriting the common container component policies but not the one I have created for it. when I click on the embedded container component from sidekick and click on "+" insert component from component's EditableToolbar, it is picking the correct policy where I am restricting components from but when I click on the parsys where we see "Drag components here" message inside the nested container component, it is inheriting the common container policy but not from the one defined for component's parent. Any insights on this issue.
Thanks in advance!