Merge pull request #390 from nextcloud/fix/todo_comments
Fix todo comments
This commit is contained in:
commit
6ecb0dc923
4 changed files with 2 additions and 7 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue