Feat: Extend and apply voter for checking of uploaded documents

This commit is contained in:
Björn Fromme
2023-10-14 17:14:30 +02:00
parent 3576d72a0a
commit f5fee787a0
4 changed files with 63 additions and 21 deletions
@@ -31,6 +31,7 @@ class CheckController extends AbstractController
#[Route('/admin/document/check/{uuid}', name: 'app_admin_document_check')]
#[IsGranted('ROLE_ADMINISTRATIVE')]
#[IsGranted('CHECK', subject: 'document')]
public function index(Upload $document, Request $request): JsonResponse
{
$response = new AjaxModalResponseDto();