Need to remove access for enabling a template for a group | Community
Skip to main content
sravs
New Participant
Jun 10, 2022 3:06 PM UTC
Solved

Need to remove access for enabling a template for a group

Need to disable the access to enable button for enabling a template.

 

Note: The user should have all other permissions except enabling the template. 

 

Please provide your inputs here.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 13, 2022 7:41 AM UTC

you need to deny permission only for below 2 nodes

/libs/wcm/core/content/sites/templates/jcr:content/actions/selection/enabletemplate

/libs/wcm/core/content/sites/templates/jcr:content/actions/selection/disabletemplate

 

Arun Patidar

7 replies

arunpatidar
New Participant
Jun 12, 2022 11:10 AM UTC

As @santoshsai suggested you can go with rendercondition or

simply deny read permission to the enable and disable nodes in crxde using AC Tool or manually.

Translate
Arun Patidar
sravs
sravsAuthor
New Participant
Jun 13, 2022 5:25 AM UTC

Thanks for your reply @arunpatidar ,

 

I have tried with ACL permissions. But it is not allowing me to edit the template, Can you please provide me the path to which I need to remove the permission.

 

Regards,

Sravani

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 13, 2022 7:41 AM UTC

you need to deny permission only for below 2 nodes

/libs/wcm/core/content/sites/templates/jcr:content/actions/selection/enabletemplate

/libs/wcm/core/content/sites/templates/jcr:content/actions/selection/disabletemplate

 

Translate
Arun Patidar
SantoshSai
New Participant
Jun 10, 2022 3:33 PM UTC

Hi @sravs ,

 

Enable/Disable options for editable templates are complement of authoring options for each of them. If certain menu items and selection actions must only show up for members of designated groups.

Setting RMCDR permissions via /useradmin doesn’t get the whole job done. You need to restrict Enable/Disable to an group without causing the action to disappear for specific members. 

granite:rendercondition

AEM provides a flexible way to hide or show almost any user interface (UI) element. Render conditions provide this control, and AEM comes with a huge number of them available for your use.

How can we achieve it? Please visit this article for more info: https://www.bounteous.com/insights/2020/06/10/control-aem-action-menus-render-conditions/

 

Hope that helps!

Regards,

Santosh

Translate
Santosh Sai