How to use granite:rendercondition to hide "create folder" option to non-admin group users

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

04-12-2020

Hi All,

 

I have a requirement to hide "create folder" option for non-admin users in the assets section of AEM author[6.5 version].

 

Any pointers/reference code/snippet on how to do this will be really helpful.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

narendragandhi

Avatar

narendragandhi

narendragandhi

04-12-2020

 
 
 

Hi @cquser1 ,

 

You can refer this article for a similar example where this was done for Quick Publish Action -  https://www.bounteous.com/insights/2020/06/10/control-aem-action-menus-render-conditions/

 

Since there are couple of places by which you could reach to create folder action you would need to overlay and add the render condition to all those places.

/libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfolder

/libs/dam/gui/content/assets/jcr:content/actions/selection/create/items/createfolder

 

Thanks

Narendra

Answers (1)

Answers (1)

Avatar

Avatar

sureshdhulipudi

MVP

Avatar

sureshdhulipudi

MVP

sureshdhulipudi
MVP

04-12-2020

In User admin, you can create a group and give Read only access to that group and add users

This will hide Create option.

dam_readonly.png