Метод resolve
Сигнатура метода
private function resolve(int $userId, int $activityId, Operation $operation): AccessDecision
Возвращает:
AccessDecision
Описание
The order of the decision. Every step is named after the canonical algorithm and none of them may change places with another. THE FIRST STEP IS THE EXISTENCE OF THE ACTIVITY, and it stands above the verdict of the provider for the same reason it stands above the administrator bypass: a provider is typed by the model of an activity and has none to be typed by, so it states nothing about a row that is not there anyway. Asking the storage is cheap here - the memory of the hit answers for every id a batch preloaded, and it remembers an absence as a fact about the id ({@see RememberingActivityRepository::exists()}).
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
—
|
—
|
$activityId
|
int
|
—
|
—
|
$operation
|
Operation
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Access/Activity/ActivityAccess.php