CCrmRole::EraseEntityPermissons

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRole
  4. EraseEntityPermissons
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_role.php
  • Класс: \CCrmRole
  • Вызов: CCrmRole::EraseEntityPermissons
static function EraseEntityPermissons($entity)
{
	$connection = Main\Application::getConnection();
	$helper = $connection->getSqlHelper();
	$entity = $helper->forSql($entity);
	(new self())->log('EraseEntityPermissons', ['Entity' => $entity]);
	$connection->queryExecute("DELETE FROM b_crm_role_perms WHERE ENTITY = '{$entity}'");
	self::ClearCache();
}

Добавить комментарий