Working on fixing form submissions

This commit is contained in:
Julien Nahum 2024-01-16 17:41:01 +01:00
parent 2ffc5311f9
commit c6238d8880
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class FormSubmissionController extends Controller
public function export(string $id)
{
$form = Form::findOrFail((int) $id);
$this->authorize('view', $form);
$allRows = [];
foreach ($form->submissions->toArray() as $row) {