From 01df92f5a73cdfe06ef0078a8e9b9e9edaeadbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Thu, 28 May 2015 16:14:05 +0200 Subject: [PATCH] =?UTF-8?q?Limite=20l'acc=C3=A8s=20au=20UploadedFileContro?= =?UTF-8?q?ller=20via=20le=20r=C3=B4le=20ROLE=5FFILES=5FADMIN.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controller/UploadedFileController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Controller/UploadedFileController.php b/Controller/UploadedFileController.php index 048dc3f4..45b65052 100644 --- a/Controller/UploadedFileController.php +++ b/Controller/UploadedFileController.php @@ -7,6 +7,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; use Irstea\FileUploadBundle\Entity\UploadedFile; use Pagerfanta\Adapter\DoctrineORMAdapter; @@ -16,6 +17,7 @@ use Pagerfanta\Pagerfanta; * UploadedFile controller. * * @Route("/files") + * @Security("is_granted('ROLE_FILES_ADMIN')") */ class UploadedFileController extends Controller { -- GitLab