Add WITH SYSTEM_MODE to fflib_AppBindingsSelector class
This should avoid the requirement of adding read permission to the custom medata object. Particular for external users
This commit is contained in:
+2
-1
@@ -48,7 +48,8 @@ public virtual without sharing class fflib_AppBindingsSelector extends fflib_SOb
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static fflib_AppBindingsSelector newInstance() {
|
public static fflib_AppBindingsSelector newInstance() {
|
||||||
return (fflib_AppBindingsSelector) SELECTOR_IMPL_TYPE.newInstance();
|
return (fflib_AppBindingsSelector) ((fflib_AppBindingsSelector) SELECTOR_IMPL_TYPE.newInstance())
|
||||||
|
.setDataAccess(fflib_SObjectSelector.DataAccess.SYSTEM_MODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Schema.SObjectType getSObjectType() {
|
public Schema.SObjectType getSObjectType() {
|
||||||
|
|||||||
Reference in New Issue
Block a user