• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/security/controller/compatible.php
  • Класс: Bitrix\Crm\Security\Controller\Compatible
  • Вызов: Compatible::unregister
public function unregister(string $entityType, int $entityId): void
{
	$this->clearPermissionAttributesCache($entityType, $entityId);

	$connection = Application::getConnection();
	$sqlHelper = $connection->getSqlHelper();

	$entityType = $sqlHelper->forSql(mb_strtoupper($entityType));

	$connection->query("DELETE FROM b_crm_entity_perms WHERE ENTITY = '{$entityType}' AND ENTITY_ID = {$entityId}");
}