Add missing security check to show entries for tag

This commit is contained in:
Yassine Guedidi 2025-02-23 10:59:14 +01:00
parent a4a6eb580b
commit 78768b96c2

View file

@ -6,6 +6,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\QueryBuilder;
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Exception\OutOfRangeCurrentPageException;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@ -136,6 +137,7 @@ class TagController extends AbstractController
* @param int $page
*
* @Route("/tag/list/{slug}/{page}", name="tag_entries", methods={"GET"}, defaults={"page" = "1"})
* @IsGranted("LIST_ENTRIES")
* @ParamConverter("tag", options={"mapping": {"slug": "slug"}})
*
* @return Response