• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/security/access.php
  • Класс: BitrixSenderSecurityAccess
  • Вызов: Access::canModifyAds
public function canModifyAds()
{
	return AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_GOOGLE_EDIT)
		|| AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_YANDEX_EDIT)
		|| AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_FB_INSTAGRAM_EDIT)
		|| AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_VK_EDIT)
		|| AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_LOOK_ALIKE_VK_EDIT)
		|| AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_LOOK_ALIKE_FB_EDIT)
		;
}