Метод processBeforeAction
Сигнатура метода
protected function processBeforeAction(Action $action): bool
Возвращает:
bool
Описание
The very gate the editor offers the switch behind: an admin of the entity type in the category the editor was opened in - an administrator of an automated solution is one for the smart processes of their own solution, an administrator of the contractor category is one for that category, and a CRM admin is one for the rest. The category has to be weighed here for the same reason the editor weighs it: the contractor branch is reachable by the category alone, so a gate without it would refuse the save behind a switch the editor has just shown. A category named by the client escalates nothing: which category of the entity type is the contractor one is decided on the server, and the right over it is asked of the acting user. The arguments are taken from the action: the engine binds them lazily, so they are readable here even though the action itself has not run yet. A numeric argument is bound in the shape it arrived in, hence the casts.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$action
|
Action
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/controller/aifieldfillpolicy.php