You need to sign in to do that
Don't have an account?
YallDev
Insufficient Privileges for custom page
I have looked at most examples that fall into the Insufficient Privileges category and I have found none that is identical to my situation.
What I did is overide the standard contact page (View) with my custom visualforce page. I can allow who see's this page and this is not my problem.
Is their a way that I can load the normal Contact View to uses who do not have permission ? Instead I always get the error.
Insufficient Privileges |
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. |
Hi,
Directly you cannot do this but you get this with the help of custom setting.
First of all you have to create a Hierarchial custom setting, then create a checkbox field on that with default value unchecked and at last check i.e set true this checkbox for the profiles to whom you want to override the view page by managing the custom setting.
And add a method to extension of custom view page as :
And call this method on your custom view page as :
It will work for you.
Please mark it as solution if it solved your problem so that others can use this.
All Answers
Hi,
I don't believe you can do this. If you override the view page for an object this will apply to all users - regardless of their permissions on the visualforce page.
Regards,
Rich.
Hi,
Directly you cannot do this but you get this with the help of custom setting.
First of all you have to create a Hierarchial custom setting, then create a checkbox field on that with default value unchecked and at last check i.e set true this checkbox for the profiles to whom you want to override the view page by managing the custom setting.
And add a method to extension of custom view page as :
And call this method on your custom view page as :
It will work for you.
Please mark it as solution if it solved your problem so that others can use this.
Hi Vikash,
That is a great solution. I'll remember that and use it quite often.
Learn something new everyday!
Regards,
Rich.
Hi Vikash
Thanks So much you saved my day, This is definetly the solution here.
Thanks Again
Jamil