mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-05 19:31:02 +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\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||
|
@ -31,6 +32,7 @@ class PocketController extends AbstractController
|
|||
|
||||
/**
|
||||
* @Route("/import/pocket", name="import_pocket", methods={"GET"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*/
|
||||
public function indexAction(PocketImport $pocketImport)
|
||||
{
|
||||
|
@ -52,6 +54,7 @@ class PocketController extends AbstractController
|
|||
|
||||
/**
|
||||
* @Route("/import/pocket/auth", name="import_pocket_auth", methods={"POST"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*/
|
||||
public function authAction(Request $request, PocketImport $pocketImport)
|
||||
{
|
||||
|
@ -82,6 +85,7 @@ class PocketController extends AbstractController
|
|||
|
||||
/**
|
||||
* @Route("/import/pocket/callback", name="import_pocket_callback", methods={"GET"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*/
|
||||
public function callbackAction(PocketImport $pocketImport, TranslatorInterface $translator)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue