/**
  * 
  * @param EventInterface $event
  * @throws UnauthorizedException
  */
 public function onCheck(EventInterface $event)
 {
     if (!$this->authorizationService->isGranted($event->getParam('permission'))) {
         throw new UnauthorizedException();
     }
 }