We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a40790 commit c0973cbCopy full SHA for c0973cb
front/formdisplay.php
@@ -46,12 +46,15 @@
46
if (isset($_REQUEST['id'])
47
&& is_numeric($_REQUEST['id'])) {
48
49
- $form->check($_REQUEST['id'], READ);
50
if ($form->getFromDB((int) $_REQUEST['id'])) {
51
-
52
if ($form->fields['access_rights'] != PluginFormcreatorForm::ACCESS_PUBLIC) {
53
Session::checkLoginUser();
+ if (!$form->checkEntity(true)) {
+ Html::displayRightError();
54
+ exit();
55
+ }
56
}
57
+
58
if ($form->fields['access_rights'] == PluginFormcreatorForm::ACCESS_RESTRICTED) {
59
$form_profile = new PluginFormcreatorForm_Profile();
60
$formId = $form->getID();
0 commit comments