diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index d4a1f58..2eaeb30 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -186,20 +186,18 @@ class PageController extends Controller { // Inject style on all templates Util::addStyle($this->appName, 'forms'); - // TODO: check if already submitted - try { $form = $this->formMapper->findByHash($hash); } catch (DoesNotExistException $e) { return new TemplateResponse('forms', 'notfound'); } - // Does the user have permissions to display + // Does the user have permissions to submit (resp. submitOnce) if (!$this->formsService->canSubmit($form->getId())) { return new TemplateResponse('forms', 'nosubmit'); } - // Does the user have permissions to display + // Does the user have access to form if (!$this->formsService->hasUserAccess($form->getId())) { return new TemplateResponse('forms', 'notfound'); } diff --git a/src/components/Questions/AnswerInput.vue b/src/components/Questions/AnswerInput.vue index 6e28b9c..1652ea4 100644 --- a/src/components/Questions/AnswerInput.vue +++ b/src/components/Questions/AnswerInput.vue @@ -1,6 +1,5 @@