Метод decide
Сигнатура метода
public function decide(int $userId, int $activityId, Operation $operation): AccessDecision
Возвращает:
AccessDecision
Описание
The decision itself, always {@see AccessDecision::Allow} or {@see AccessDecision::Deny}. An id no activity can have is refused without asking anybody, and an id no row answers for is refused by the first step of the order: what does not exist is not accessible. A decision already taken in this hit is not taken twice: it is remembered per user, activity and operation ({@see DecisionCache}), and the order proper runs on the first question only.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
—
|
—
|
$activityId
|
int
|
—
|
—
|
$operation
|
Operation
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Access/Activity/ActivityAccess.php
Расположение метода в файле
Строки
168–181