mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-30 19:22:12 +00:00
Add IsGranted to import controllers
This commit is contained in:
parent
e3dc63f739
commit
9499b062d0
20 changed files with 71 additions and 17 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue