diff --git a/Controller/UploadedFileController.php b/Controller/UploadedFileController.php index 048dc3f454df8f4c76d25ea0dd00a44227782986..45b65052a6d760ee1fcbc2c60a4e887f5e6c5bcc 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 {