public function execute($request)
 {
     $adminMode = $this->getUser()->hasCredential(Auth::ADMIN_ROLE);
     if (!$adminMode) {
         return $this->renderText("You are not allowed to view this page!");
     }
     $this->getRequest()->setAttribute('skipRoundBorder', true);
     return parent::execute($request);
 }
 public function execute($request)
 {
     /* For highlighting corresponding menu item 
      * TODO: Currently menu item is hard-coded since this action is only used by PIM Reports
      */
     $this->reportPermissions = $this->getDataGroupPermissions('pim_reports');
     if (!$this->reportPermissions->canRead()) {
         return $this->renderText("You are not allowed to view this page!");
     }
     $this->getRequest()->setAttribute('skipRoundBorder', true);
     return parent::execute($request);
 }
 public function execute($request)
 {
     /* For highlighting corresponding menu item 
      * TODO: Currently menu item is hard-coded since this action is only used by PIM Reports
      */
     $request->setParameter('initialActionName', 'viewDefinedPredefinedReports');
     $adminMode = $this->getUser()->hasCredential(Auth::ADMIN_ROLE);
     if (!$adminMode) {
         return $this->renderText("You are not allowed to view this page!");
     }
     $this->getRequest()->setAttribute('skipRoundBorder', true);
     return parent::execute($request);
 }