/**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     $security = $this->security;
     if ($security->isGranted('campaign:campaigns:view')) {
         $event->addCommands('mautic.campaign.campaigns', $this->factory->getModel('campaign')->getCommandList());
     }
 }
示例#2
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     $security = $this->security;
     if ($security->isGranted('stage:stages:view')) {
         $event->addCommands('mautic.stage.actions.header.index', $this->factory->getModel('stage')->getCommandList());
     }
 }
示例#3
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     $security = $this->security;
     if ($security->isGranted('api:clients:view')) {
         $event->addCommands('mautic.api.client.header.index', $this->apiClientModel->getCommandList());
     }
 }
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     if ($this->security->isGranted('user:users:view')) {
         $event->addCommands('mautic.user.users', $this->factory->getModel('user.user')->getCommandList());
     }
     if ($this->security->isGranted('user:roles:view')) {
         $event->addCommands('mautic.user.roles', $this->factory->getModel('user.role')->getCommandList());
     }
 }
示例#5
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     if ($this->security->isGranted(array('report:reports:viewown', 'report:reports:viewother'), "MATCH_ONE")) {
         $event->addCommands('mautic.report.reports', $this->factory->getModel('report')->getCommandList());
     }
 }
示例#6
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     if ($this->security->isGranted(['asset:assets:viewown', 'asset:assets:viewother'], 'MATCH_ONE')) {
         $event->addCommands('mautic.asset.assets', $this->assetModel->getCommandList());
     }
 }
示例#7
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     if ($this->security->isGranted(['email:emails:viewown', 'email:emails:viewother'], 'MATCH_ONE')) {
         $event->addCommands('mautic.email.emails', $this->emailModel->getCommandList());
     }
 }
示例#8
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     if ($this->security->isGranted(['lead:leads:viewown', 'lead:leads:viewother'], 'MATCH_ONE')) {
         $event->addCommands('mautic.lead.leads', $this->leadModel->getCommandList());
     }
 }
示例#9
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     if ($this->security->isGranted(['page:pages:viewown', 'page:pages:viewother'], 'MATCH_ONE')) {
         $event->addCommands('mautic.page.pages', $this->pageModel->getCommandList());
     }
 }
示例#10
0
 /**
  * @param MauticEvents\CommandListEvent $event
  */
 public function onBuildCommandList(MauticEvents\CommandListEvent $event)
 {
     if ($this->security->isGranted(['form:forms:viewown', 'form:forms:viewother'], 'MATCH_ONE')) {
         $event->addCommands('mautic.form.forms', $this->formModel->getCommandList());
     }
 }