...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/security/controller/querybuilder/controllerbased.php
- Класс: Bitrix\Crm\Security\Controller\QueryBuilder\ControllerBased
- Вызов: ControllerBased::addTypeAndCategoryToRestrictionMap
private function addTypeAndCategoryToRestrictionMap( array &$restrictionMap, string $permissionEntityType, bool $canSkipCategoryRestrictions = false ) { if (!isset($restrictionMap['ENTITY_TYPES'])) { $restrictionMap['ENTITY_TYPES'] = []; } $restrictionMap['ENTITY_TYPES'][] = $permissionEntityType; if (!isset($restrictionMap['CATEGORY_ID'])) { $restrictionMap['CATEGORY_ID'] = []; } if ($this->controller->hasCategories() && !$canSkipCategoryRestrictions) { $restrictionMap['CATEGORY_ID'][] = $this->controller->extractCategoryId($permissionEntityType); } }