Skip to content

Commit 6169412

Browse files
committed
fix(form): don't access deleted forms
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 0290a97 commit 6169412

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

front/formdisplay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
&& is_numeric($_REQUEST['id'])) {
4848

4949
if ($form->getFromDB((int) $_REQUEST['id'])) {
50-
if ($form->fields['is_active'] == '0') {
50+
if ($form->fields['is_active'] == '0' || $form->fields['is_deleted'] != '0') {
5151
Html::displayNotFoundError();
5252
}
5353
if ($form->fields['access_rights'] != PluginFormcreatorForm::ACCESS_PUBLIC) {

0 commit comments

Comments
 (0)