Sign in to Community
Sign in to view all badges
Working on AEM 6.1, one of my customer is asking for a delete button on the asset page.
In order to do it, I've just overlay the asset page by creating /apps/dam/gui/content/assets/assetpage... until overlay actions buttons.
The button is here and I'm able to make it work in order to delete the current asset.
My issue is about the button visibility. I want him to be visible only by users that can delete the asset (policies).
I look at the edit button related nodes in /libs (which is not visible when the user didn't have modification rights) but i still don't get how this button disapear regarding users rights...
If anyone can help...
Thanks in advance and forgive my english 🙂
I wouldn't add the ACL on that button itself, but use a render condition like the one in the code sample:
Put such a config as a "rendercondition" child node of your button.