Overlay Navigation for ACL | Community
Skip to main content
Level 3
Oct 14, 2019 7:08 PM UTC
Solved

Overlay Navigation for ACL

I'd like to hide the 'Tools' navigation for only a single user group.

I created an overlay for /libs/cq/core/content/nav/tools under /apps/cq/core/content/nav/tools; then added a deny ACL for the navigation item like so: /apps/cq/core/content/nav/tools/rep:policy/deny. The reason for doing this is so that next time we upgrade our instance, the ACLs would remain.

When I log in as a user in the specific user group, I am still able to view the Tools menu. My assumption was that the overlaid items would take precedence over the content under /libs.

Any advice here?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Oct 15, 2019 9:03 PM UTC

It should be doable. Let my try to reproduce in the next day on my own box. What AEM version are you using?

Jörg

8 replies

Gunars_VAuthor
Level 3
Oct 15, 2019 9:09 PM UTC

Awesome thanks! We're running 6.5.2.0

Translate
joerghoh
joerghohAccepted solution
Employee
Oct 15, 2019 9:03 PM UTC

It should be doable. Let my try to reproduce in the next day on my own box. What AEM version are you using?

Jörg

Translate
Gunars_VAuthor
Level 3
Oct 14, 2019 9:33 PM UTC

I'd like to have the Tools menu accessible to all users/groups, however for one group, not have the Tools menu appear at all.

I attempted to do this by creating the ACL here but the menu is still visible:

/apps/cq/core/content/nav/tools/rep:policy/deny

I know that if I do this under the /libs area, Tools will not appear for the user group, but I'm trying to avoid having the ACL located there.

I'm guessing that this can't be done?

Translate
Level 2
Jan 9, 2022 7:47 PM UTC

Hey @gunars_v @joerghoh I exactly want to do this. Did we manage to get this done? If yes, could you please help me with the steps please?

Translate
joerghoh
Employee
Jan 13, 2022 8:36 PM UTC

Just re-reading this: That path belongs to classic UI, and there you have to set the ACL into /libs, and there's no other way. With TouchUI you can work with renderconditions to conditionally display elements of the UI.

Translate
joerghoh
Employee
Oct 14, 2019 9:00 PM UTC

If you make that node only visible to this user group?

Translate
Gunars_VAuthor
Level 3
Oct 14, 2019 8:46 PM UTC

Thanks, but how do you limit that to only the specific user group?

Translate
joerghoh
Employee
Oct 14, 2019 8:39 PM UTC

You should use the sling Resource Merger to hide the node instead of overlaying it:

Using the Sling Resource Merger in AEM

Jörg

Translate