Метод canEditCommonView
Сигнатура метода
public function canEditCommonView(?int $entityTypeId, ?int $categoryId): bool
Возвращает:
bool
Описание
Can user edit representation of entity editor in common view $entityTypeId and $categoryId name the card whose common layout is being read or written, so that the answer belongs to the contour that card is configured in ({@see ConfigurationScope}). A surface that names no card of its own passes `null` and is answered for CRM as a whole - the former check of this path was the global one, so nothing changes for it before the operations are registered.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$entityTypeId
|
?int
|
—
|
—
|
$categoryId
|
?int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/Service/UserPermissions/EntityEditor.php
Расположение метода в файле
Строки
78–86