I want to remove delete icon based on the user group permission, i.e., there are two user groups A and B for A i want to show delete icon on component where as for B I don't want to show this icon.
Is there a solution to it other than updating "cq:actions string[] edit " in cq:editConfig because that restricts these actions for everyone?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can use a granite:render
condition to check the user group and hide the specific button. Overlay the node that contains this option and add the render condition there.
Please check these resources which explain how to do it:
https://jpsoares.medium.com/aem-granite-render-conditions-438c804b1e5a
Hope this helps
Hi,
You can use a granite:render
condition to check the user group and hide the specific button. Overlay the node that contains this option and add the render condition there.
Please check these resources which explain how to do it:
https://jpsoares.medium.com/aem-granite-render-conditions-438c804b1e5a
Hope this helps
@shahidwaris Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes