mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-05 19:31:02 +00:00
Add availability to disable an importer
This commit is contained in:
parent
cad5a24fb6
commit
7e7674a4a6
17 changed files with 332 additions and 3 deletions
|
@ -27,6 +27,7 @@ class PocketController extends AbstractController
|
|||
|
||||
#[Route(path: '/import/pocket', name: 'import_pocket', methods: ['GET'])]
|
||||
#[IsGranted('IMPORT_ENTRIES')]
|
||||
#[IsGranted('USE_IMPORTER', subject: 'pocketImport')]
|
||||
public function indexAction(PocketImport $pocketImport)
|
||||
{
|
||||
$pocket = $this->getPocketImportService($pocketImport);
|
||||
|
@ -47,6 +48,7 @@ class PocketController extends AbstractController
|
|||
|
||||
#[Route(path: '/import/pocket/auth', name: 'import_pocket_auth', methods: ['POST'])]
|
||||
#[IsGranted('IMPORT_ENTRIES')]
|
||||
#[IsGranted('USE_IMPORTER', subject: 'pocketImport')]
|
||||
public function authAction(Request $request, PocketImport $pocketImport)
|
||||
{
|
||||
$requestToken = $this->getPocketImportService($pocketImport)
|
||||
|
@ -76,6 +78,7 @@ class PocketController extends AbstractController
|
|||
|
||||
#[Route(path: '/import/pocket/callback', name: 'import_pocket_callback', methods: ['GET'])]
|
||||
#[IsGranted('IMPORT_ENTRIES')]
|
||||
#[IsGranted('USE_IMPORTER', subject: 'pocketImport')]
|
||||
public function callbackAction(PocketImport $pocketImport, TranslatorInterface $translator)
|
||||
{
|
||||
$message = 'flashes.import.notice.failed';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue