Skip to content

Commit 0290a97

Browse files
committed
fix(form): deny access if form not enabled
1 parent a48c663 commit 0290a97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

front/formdisplay.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
&& is_numeric($_REQUEST['id'])) {
4848

4949
if ($form->getFromDB((int) $_REQUEST['id'])) {
50+
if ($form->fields['is_active'] == '0') {
51+
Html::displayNotFoundError();
52+
}
5053
if ($form->fields['access_rights'] != PluginFormcreatorForm::ACCESS_PUBLIC) {
5154
Session::checkLoginUser();
5255
if (!$form->checkEntity(true)) {

0 commit comments

Comments
 (0)