Show/Hide Tab Based on User Group and Permissions | Community
Skip to main content
October 16, 2015
Solved

Show/Hide Tab Based on User Group and Permissions

  • October 16, 2015
  • 2 replies
  • 813 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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]

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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]

October 16, 2015

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