208 return AccessController::can($this->user->getId(), ActionDictionary::ACTION_MAILING_EMAIL_EDIT)
209 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_MAILING_AUDIO_CALL_EDIT)
210 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_MAILING_INFO_CALL_EDIT)
211 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_MAILING_SMS_EDIT)
212 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_MAILING_MESSENGER_EDIT)
225 $letterType = explode(
"\\", $letterClass);
227 switch ($letterType[count($letterType) - 1])
230 return AccessController::can($this->user->getId(), ActionDictionary::ACTION_RC_PAUSE_START_STOP);
233 return AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_PAUSE_START_STOP);
236 return AccessController::can($this->user->getId(), ActionDictionary::ACTION_MAILING_PAUSE_START_STOP);
259 return AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_GOOGLE_EDIT)
260 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_YANDEX_EDIT)
261 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_FB_INSTAGRAM_EDIT)
262 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_VK_EDIT)
263 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_LOOK_ALIKE_VK_EDIT)
264 || AccessController::can($this->user->getId(), ActionDictionary::ACTION_ADS_LOOK_ALIKE_FB_EDIT)
465 $action = $eventData[
'action'];
466 [$sectionCode, $actionCode] = self::getSectionAndAction($action);
468 $instance = self::getInstance();
469 $eventResult =
new EventResult(EventResult::SUCCESS);
473 $canAccess = $instance->canPerform($sectionCode, $actionCode);
476 return $eventResult->forbidAccess();
481 return $eventResult->allowAccess();
484 return $eventResult->forbidAccess();