Gravatar for

Question by eaubin, Oct 7, 2014 12:37 PM

How to hide a GroupTabMenu in a Salesforce Search Interface based on Permission Set

Hi all

I've been able to succesfully add a component in a page based on direct object access with a outputpanel and using the rendered attribute with this call : rendered="{!$ObjectType.ISMSActions_c.accessible}"

But I have another requirement for hiding a CoveoTabGroup based on a PermissionSet named HR (as an example).

Can't find a smart way of doing it.. Any tips ?


1 Reply
Gravatar for

Answer by eaubin, Jul 17, 2015 10:48 AM

Here's how I did it:

 <apex:outputPanel rendered="{!$ObjectType.ISMS_Actions__c.accessible}" >  
     <a class='CoveoTabGroup' data-icon='salesforceicon' data-id='ISMSGroup'>ISMS</a>
 <a class='CoveoTabGroup' data-id='GoogleGroup'>Google</a>
 <apex:outputPanel rendered="{!OR($Profile.Name = 'System Administrator', $Profile.Name = 'Senior Management',$Profile.Name = 'Finance Administrator',$Profile.Name = 'Finance',$Profile.Name = 'Finance Administrator New',$Profile.Name = 'Finance Manager',$Profile.Name = 'Finance Manager Administrator',$Profile.Name = 'Finance Manager Test')}"  >  
    <a class='CoveoTabGroup' data-id='FinanceGroup'>Finance</a>
Ask a question