Need to remove access for enabling a template for a group | Community
Skip to main content
sravs
New Participant
June 10, 2022
Solved

Need to remove access for enabling a template for a group

  • June 10, 2022
  • 2 replies
  • 1333 views

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.
Best answer by arunpatidar

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

 

2 replies

arunpatidar
New Participant
June 12, 2022

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.

Arun Patidar
sravs
sravsAuthor
New Participant
June 13, 2022

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

arunpatidar
arunpatidarAccepted solution
New Participant
June 13, 2022

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
SantoshSai
New Participant
June 10, 2022

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

Santosh Sai