...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/leaddatasource.php
- Класс: Bitrix\Crm\Widget\Data\LeadDataSource
- Вызов: LeadDataSource::preparePermissionSql
protected function preparePermissionSql() { if($this->permissionSql !== null) { return $this->permissionSql; } if(\CCrmPerms::IsAdmin($this->userID)) { $this->permissionSql = ''; } else { $this->permissionSql = \CCrmPerms::BuildSql( \CCrmOwnerType::LeadName, '', 'READ', array('RAW_QUERY' => true, 'PERMS'=> \CCrmPerms::GetUserPermissions($this->userID)) ); } return $this->permissionSql; }