Метод isDelegatedOwner

private static

Сигнатура метода

private static function isDelegatedOwner(int $listId, int $createdById, int $userId): bool

Возвращает: bool

Описание

A user is a delegated owner of the call list if they are RESPONSIBLE_ID of an activity that carries the list (PROVIDER_ID = CALL_LIST, ASSOCIATED_ENTITY_ID = list id) and whose AUTHOR_ID equals the list's creator. AUTHOR_ID is set by the server, is read-only in REST and is reset by Update, so it cannot be forged; only whoever already passes this same check on the list may move RESPONSIBLE_ID/ASSOCIATED_ENTITY_ID of such an activity.

Параметры

3
Имя Тип По умолчанию Флаги
$listId int —
—
$createdById int —
—
$userId int —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/calllist/calllist.php
Расположение метода в файле
Строки 189–206

Исходный код

PHP