Метод validateFieldsScope
Сигнатура метода
protected static function validateFieldsScope(self $request): void
Возвращает:
void
Описание
Refuses a field the grant of the caller does not name. An unrestricted grant - the usual one - names no field at all, and then every field of the contract is writable: an empty list is "no restriction" and not "nothing may be written", which is how the platform reads it for a `select` too. The refusal is the one the platform answers an unknown field of a DTO with, and that is deliberate: a field outside the grant is a field the caller has no contract for, and an answer telling it apart from a misspelled one would say which fields the portal has beyond the grant.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$request
|
self
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Request/Dictionary/AbstractWriteValueRequest.php