Commit 01df92f5 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Limite l'accès au UploadedFileController via le rôle ROLE_FILES_ADMIN.

Showing with 2 additions and 0 deletions
+2 -0
......@@ -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
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment