/**
  * @param BeforeGroupingChainWidgetEvent $event
  */
 public function isAllowedButton(BeforeGroupingChainWidgetEvent $event)
 {
     if ($this->isFrontendRoute()) {
         // Clear allowed widgets
         $event->setWidgets([]);
         $event->stopPropagation();
     } else {
         $this->filter->isAllowedButton($event);
     }
 }