Метод isEntityTypeWithEventPermission
Сигнатура метода
public static function isEntityTypeWithEventPermission(int $entityTypeId, int $categoryId = 0): bool
Возвращает:
bool
Описание
Whether the given entity type requires event permission check. For Contact/Company, the check depends on category: default category (0) = CRM entity, needs permission; non-default category (e.g. contractor) = not a CRM entity, no permission needed.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$entityTypeId
|
int
|
—
|
—
|
$categoryId
|
int
|
0
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/Service/UserPermissions/Event.php
Расположение метода в файле
Строки
36–49