Метод canRead

public

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

public function canRead(int $entityTypeId, int $userId, int $categoryId): bool

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

Описание

Whether $userId may read the category $categoryId, and with it the stages of that category. Says nothing about the category existing: an id nobody granted permissions for is simply not readable. Existence is answered by {@see \Bitrix\Crm\V2\Internal\Repository\Category\CategoryRepositoryInterface::getById()}.

Параметры

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

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Category/CategoryAccess.php
Расположение метода в файле
Строки 40–54

Исходный код

PHP