Expand my Community achievements bar.

SOLVED

Show/Hide Tab Based on User Group and Permissions

Avatar

Former Community Member

I am using WCM CQ5 and I want to build a component (let's say Header) that has 5 total tabs but I want two tabs to be shown based on permissions -  "Style" and "Advanced Style".

If a user is a member of my Advanced Author group, when they drag the Header component from the Sidekick and open it to edit, they should only see the Advanced Style tab.

If a user is a member of my regular Author group, they should only see the "Style" tab.

I feel like this should be possible but I'm not quite sure how to execute within my code. 

Any suggestions?

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can utilize JCR  node level ACL definition though the CQ UI doesn't allow.  An example showing below sample for default text component

[img]Final.png[/img]

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You can utilize JCR  node level ACL definition though the CQ UI doesn't allow.  An example showing below sample for default text component

[img]Final.png[/img]

Avatar

Former Community Member

Thank you! Very easy to do and the screenshots helped a bunch.