Where: This change applies to orgs with Aura components in Lightning Experience, Salesforce Classic, and all versions of the Salesforce app.
When: This update was created in Summer ’17 and is enforced when a sandbox or production org is upgraded to Summer ’21. Enforcement starts for some sandboxes on April 4, 2021. To get the major release upgrade date for your instance, go to Trust Status, search for your instance, and click the maintenance tab.
Why: When added to a managed package, only Apex controller methods marked global are accessible by Aura components outside of that managed package’s namespace. Methods marked public in their Apex definitions are accessible only to Aura components included in the package’s namespace. When this update is enabled, these rules are enforced.
Prior to this update, Aura components outside of the package namespace could access non-global methods (Apex controller methods not marked with the global access modifier).
When this update is enabled, if your code incorrectly depends on non-global Apex methods in a managed package, server actions that call those methods fail. Update your code to use only the supported API methods provided by the package as global methods.
How: To test this update, we recommend working in a sandbox. After April 4, 2021, you can continue to activate or deactivate the update from Release Updates in Setup until the update is automatically enforced when your org is upgraded to Summer ’21.
- From Setup, enter Release Updates in the Quick Find box.
- Select Release Updates.
- Find Disable Access to Non-global Controller Methods in Managed Packages, and click View Details or Get Started.
- Test that your custom Aura components are working correctly.