Protection of the Store-API
"Field" Protection in EntityDefinition
Examples:
// you'll see this field as employee, if your are the admin of the customer
(new BoolField('isExternalEmployee', 'is_external_employee'))->addFlags( // this field is an example
new ApiAware(),
new EmployeeReadProtected(true, ['admin']) // true means: read by himself allowed, but only if the employee has the role "Admin"
)Protection of AssosciationFields
Protection of Custom Fields
Store-API Routes Protection
Add Route Annotations
B2bPlatformContextRequired
Add Filter to the Criteria
Last updated
Was this helpful?