CCrmAuthorizationHelper::CheckExportPermission

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmAuthorizationHelper
  4. CheckExportPermission
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_authorization_helper.php
  • Класс: \CCrmAuthorizationHelper
  • Вызов: CCrmAuthorizationHelper::CheckExportPermission
static function CheckExportPermission($entityType, $userPermissions = null)
{
	$entityTypeName = is_numeric($entityType)
		? CCrmOwnerType::ResolveName($entityType)
		: mb_strtoupper(strval($entityType));

	if(!$userPermissions)
	{
		$userPermissions = self::GetUserPermissions();
	}

	return !$userPermissions->HavePerm($entityTypeName, BX_CRM_PERM_NONE, 'EXPORT');
}

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