forked from wallabag/wallabag
Add IsGranted to import controllers
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Wallabag\Controller\Import;
|
||||
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
@ -14,6 +15,7 @@ abstract class BrowserController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @Route("/import/browser", name="import_browser", methods={"GET", "POST"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user