Working on fixing form submissions
This commit is contained in:
parent
2ffc5311f9
commit
c6238d8880
|
@ -30,6 +30,7 @@ class FormSubmissionController extends Controller
|
||||||
public function export(string $id)
|
public function export(string $id)
|
||||||
{
|
{
|
||||||
$form = Form::findOrFail((int) $id);
|
$form = Form::findOrFail((int) $id);
|
||||||
|
$this->authorize('view', $form);
|
||||||
|
|
||||||
$allRows = [];
|
$allRows = [];
|
||||||
foreach ($form->submissions->toArray() as $row) {
|
foreach ($form->submissions->toArray() as $row) {
|
||||||
|
|
Loading…
Reference in New Issue