mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-05 19:31:02 +00:00
Remove voter & add tests
This commit is contained in:
parent
7e7674a4a6
commit
5629330cb6
29 changed files with 269 additions and 154 deletions
|
@ -23,9 +23,12 @@ class OmnivoreController extends AbstractController
|
|||
|
||||
#[Route(path: '/import/omnivore', name: 'import_omnivore', methods: ['GET', 'POST'])]
|
||||
#[IsGranted('IMPORT_ENTRIES')]
|
||||
#[IsGranted('USE_IMPORTER', subject: 'omnivore')]
|
||||
public function indexAction(Request $request, OmnivoreImport $omnivore, Config $craueConfig, TranslatorInterface $translator)
|
||||
{
|
||||
if (!$omnivore->isEnabled()) {
|
||||
throw $this->createNotFoundException('Import is disabled');
|
||||
}
|
||||
|
||||
$form = $this->createForm(UploadImportType::class);
|
||||
$form->handleRequest($request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue