/** * @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()); } }
/** * @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()); } }
/** * @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()); } }
/** * @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()); } }
/** * @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()); } }
/** * @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()); } }
/** * @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()); } }
/** * @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()); } }
/** * @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()); } }