You need to sign in to do that
Don't have an account?
Error: Insufficient Privileges
Hello,
I have created a custom object and 2 visual force pages that override the custom layouts. 1 for the "view" layout and 1 for the "edit" layout. When a user clicks the save button the page refreshes an the message " Error: Insufficient Privileges" appears in red.
You can see in the picture below.
http://imageshack.us/photo/my-images/31/d67v.jpg/
I as an administrator have no problem. The weird thing is that they can view/edit the records that I am the owner. The problem exists only when they are trying to save a new record under their name.
Please any ideas would be helpful!
Did you allow the other non-sys admin profiles access to your view screen as well as the edit screen via the security link under set up -> Develop -> Pages?
Since they can see the page I assume these pages are added to their profiles. But if its not allowing save, then probably some fields are not editable for their profile. Did you write any controller for this? It would be good idea to open debug log and see what happens when you click on Save.
Do you want to restrict them from seeing your or other's records that they dont own? Then you need to set the OWD (Security Controls - Sharing settings) to Private.
The issue was caused due to the fact that the object was child of another object and the users didn't have the access to the parent object.
Thanks for your help.