When I update a record from a details page I get the error
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
And when I try to update the record from a Visualforce page I get
I know both the error messages are explaining the same problem but I want to display the same error message in both places.