Skip to content

Commit

Permalink
Fix: improper access (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertSt7 committed Jan 8, 2024
1 parent 449a620 commit c33c004
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Controller/Admin/DuplicatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\ControllerEvent;
use Symfony\Component\Routing\Annotation\Route;

/**
Expand All @@ -35,6 +36,12 @@ public function init()
AbstractObject::setHideUnpublished(true);
}

public function onKernelControllerEvent(ControllerEvent $event): void
{
parent::onKernelControllerEvent($event);
$this->checkPermission('plugin_cmf_perm_customerview');
}

/**
* @Route("/list")
*
Expand Down

0 comments on commit c33c004

Please sign in to comment.