mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +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
|
@ -4,6 +4,7 @@ namespace Wallabag\Controller\Import;
|
|||
|
||||
use Craue\ConfigBundle\Util\Config;
|
||||
use OldSound\RabbitMqBundle\RabbitMq\Producer as RabbitMqProducer;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
@ -27,6 +28,7 @@ class ChromeController extends BrowserController
|
|||
|
||||
/**
|
||||
* @Route("/import/chrome", name="import_chrome", methods={"GET", "POST"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*/
|
||||
public function indexAction(Request $request, TranslatorInterface $translator)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue