Метод isContourAdmin

private

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

private function isContourAdmin(ConfigurationScope $scope, ?int $categoryId = null): bool

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

Описание

The contextual administrator check of the former surfaces. With an entity it is exactly `isAdminForEntity()`; without one - a type being created or moved - it is the administrator of the target contour, which is what the add path of the type controller used to check. $categoryId is what the former point of the surface passed and is deliberately not taken from the scope: for the contractor category `isAdminForEntity()` answers with the warehouse configuration right instead of the CRM administrator ({@see UserPermissions\EntityPermissions\Admin}), so a surface that used to ask about the entity type alone has to keep asking about it alone.

Параметры

2
Имя Тип По умолчанию Флаги
$scope ConfigurationScope —
—
$categoryId ?int null
—

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

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

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

Исходный код

PHP