fix document delete last document

This commit is contained in:
team 1
2026-02-18 09:26:08 +01:00
parent 64b263c5fe
commit b1e1fe082e
3 changed files with 37 additions and 5 deletions

View File

@@ -234,7 +234,7 @@ class DocumentController extends AbstractController
): RedirectResponse
{
if (!$this->isCsrfTokenValid('activate_version_'.$versionId, $request->request->get('_token'))) {
if (!$this->isCsrfTokenValid('activate_version_' . $versionId, $request->request->get('_token'))) {
throw $this->createAccessDeniedException();
}
@@ -313,7 +313,7 @@ class DocumentController extends AbstractController
): ?RedirectResponse
{
$dryRun = false;
if (!$this->isCsrfTokenValid('ingest_version_'.$versionId, $request->request->get('_token'))) {
if (!$this->isCsrfTokenValid('ingest_version_' . $versionId, $request->request->get('_token'))) {
throw $this->createAccessDeniedException();
}
@@ -425,6 +425,7 @@ class DocumentController extends AbstractController
EntityManagerInterface $em,
IngestJobService $jobService,
LockService $lockService,
DocumentService $documentService
): RedirectResponse
{
if (!$this->isCsrfTokenValid('delete_document_' . $id, $request->request->get('_token'))) {