• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/restriction/restrictionmanager.php
  • Класс: Bitrix\Crm\Restriction\RestrictionManager
  • Вызов: RestrictionManager::getContactExportRestriction
static function getContactExportRestriction(): Bitrix24AccessRestriction
{
	if (!static::$contactExportRestriction)
	{
		static::$contactExportRestriction = new Bitrix24AccessRestriction(
			'crm_contacts',
			false,
			null,
			['ID' => 'limit_crm_free_export_contacts']
		);
		if(!static::$contactExportRestriction->load())
		{
			static::$contactExportRestriction->permit(
				Bitrix24Manager::isFeatureEnabled('crm_contacts_export')
			);
		}
	}

	return static::$contactExportRestriction;
}