Метод getItemsFilteredByPermissions
Сигнатура метода
public function getItemsFilteredByPermissions(array $parameters, ?int $userId = null, string $operation = UserPermissions::OPERATION_READ): array
Возвращает:
array
Описание
Method performs getList with additional filter by users permissions. First - collect all permissionTypes depending on current filter. If categories are not supported - there is only one type. If there is filter by categories - get all types for them. If there is not filter by categories - we should collect all existing categories. After collecting all types we can calculate sql for ids an apply it to the filter.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$parameters
|
array
|
—
|
—
|
$userId
|
?int
|
null
|
—
|
$operation
|
string
|
UserPermissions::OPERATION_READ
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/Service/Factory.php
Расположение метода в файле
Строки
492–523