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
Rajat Jain 65Rajat Jain 65 

Getting error System.VisualforceException: Update access denied while updating the records from Guest user profile

After winter'21 release as Edit, Delete, Modify all and View all permission has been revoked from the Guest user profile (Unauthenticated) so as to make custom VF pages work unauthenticated and to perform edit operation ignoreEditPermissionForRendering (Salesforce Suggestion (https://help.salesforce.com/articleView?id=release-notes.rn_networks_guest_user.htm&release=228&type=5)) parameter has been added to all the Apex Inputfields but even after that when we try to update records we are getting error like this.

User-added image
Any help would be much appreciated.

ShirishaShirisha (Salesforce Developers) 
Hi Rajat,

Greetings!

Please double check,if you have custom controller which is without sharing.Since,ignoreEditPermissionForRendering  works only when we have custom controller which is in without sharing mode.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Rajat Jain 65Rajat Jain 65

Hi Shirisha,

 

The controller is already working without sharing mode and in addition to that controller access is also provided to the guest user profile.

Please suggest if you have any other way around.

Thank you
 

Fred Kampf 3Fred Kampf 3
Hi. Have you found a solution?  I am experiencng the same thing.  thanks!!