Overlay Navigation for ACL

Avatar

Avatar

Gunars_Vilcins

Avatar

Gunars_Vilcins

Gunars_Vilcins

14-10-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

15-10-2019

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

Answers (5)

Answers (5)

Avatar

Avatar

Gunars_Vilcins

Avatar

Gunars_Vilcins

Gunars_Vilcins

15-10-2019

Awesome thanks! We're running 6.5.2.0

Avatar

Avatar

Gunars_Vilcins

Avatar

Gunars_Vilcins

Gunars_Vilcins

14-10-2019

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?

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

14-10-2019

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

Avatar

Avatar

Gunars_Vilcins

Avatar

Gunars_Vilcins

Gunars_Vilcins

14-10-2019

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

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

14-10-2019

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

Using the Sling Resource Merger in AEM

Jörg