Need help with a requirement. I have to hide certain select actions in assets.html for some particular user group (hide Manage tags, To Collection, Copy etc). Currently we get all the below options on selection.
I overlayed the action selection node and tried hideChildren but it hides these options for all the users including admin (which is obvious so I can't use this way) and I also tried applying rep:policy but somehow these policies don't work and the options load from some render condition JSPs. I cannot modify these OOTB JSPs so please suggest me something which will work here. I am not sure how to do it via JS. Can anyone help me on this?
Can you try adding rendercondition for the actions(overlayed in apps) that you would like to show/hide for certain user groups.
OOB : PrivilegeRenderCondition - PrivilegeRenderCondition ("The Adobe AEM Quickstart and Web Application.")
You can also try creating custom render conditions based on your need and add it to actions as mentioned in the usage where
Reference for writing custom Render condition : /libs/granite/ui/components/coral/foundation/renderconditions/privilege/privilege.jsp
I have similar requirement where we need to hide/show certain action buttons on selection of assets or folder depending on user groups. I have written render.jsp and applied logic in it for user groups but not able to fetch selected asset or folder in it. how to do that ?
I have similar requirement. I need to provide the Delete button only if the asset is created by the editing user and should be hidden to rest of the users.
I am unable to achieve this through render condition actions as it's a generic to asset details html/page.
Please let me know if your suggestions.
you need to overlay delete button and add one more renderrer with AND condition at /apps/dam/gui/content/assets/jcr:content/actions/selection/delete/granite:rendercondition like