Hide Delete button for pages under specific path using repoinit script
Hello guys,
For a role I am trying to hide delete option for pages under "/content/A" but not for pages under "/content/B" and I have tried below statements but edit and delete option for components under those pages are also getting hidden . Can anyone provide any suggestions for this?
deny jcr:read on /libs/wcm/core/content/sites for /content/A/* restriction (rep:glob, "/jcr:content/actions/selection/deletepage")
deny jcr:read on /libs/wcm/core/content/sites restriction(rep:glob,/jcr:content/actions/selection/deletepage) restriction(rep:glob,/A)