function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mak OneMak One 

Unable to use tabStyle if user is not having permission on that Tab

As I need coloring and styles of Case Tab to be in a Visualforce Page I am using tabStyle. Requirement is that when that page is loaded Home Tab should be selected (Not Case Tab). So I have used below pageBlock which is working:

<apex:pageBlock tabStyle="Case">

Now the problem is that if the user is not having access to Case Tab. The Page will throw an error mentioning user does not have permission to access Case Tab.

What can be the solution or workaround for this?
Can I somehow make Visualforce page to display this pageBlock without taking user permissions into consideration?
nitesh gadkarinitesh gadkari
Hi Mak,

Why don't you create your own tabstyle from tab create wizard by coping case style color and also capturing the image if you want.