Tuesday 18 May 2021

Override Entity Permissions When using

Hi,


The new ignoreEditPermissionForRendering attribute on <apex:inputField> allows you to override entity edit permissions for users, even when the underlying permission on the object doesn’t allow edits. This override affects all users but is intended to be used only for guest users. This attribute works only with a custom controller in without sharing mode.

Where: This change applies to Salesforce orgs in Enterprise, Performance, Unlimited, and Developer editions.

When: This change was available first in Winter ’21 and then back-ported to Summer ’20.

How: This attribute bypasses entity edit permissions and field-level security edit checks, so any form field that uses <apex:inputField> with this attribute is open for edit. To validate fields or block edit access when using this attribute, use additional checks in the page's custom Apex controller.



Reference:

https://help.salesforce.com/articleView?id=release-notes.rn_networks_entity_input_field_update_228.htm&release=228&type=5

No comments:

Post a Comment

Best Practices for Building Prompt Templates

 Hi, The following best practices should be considered when building prompt templates: Make sure that your prompt templates are concise and ...