Skip to content

Commit

Permalink
fix(form): deny access if form not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Oct 10, 2019
1 parent dddf830 commit 5d4489d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions front/formdisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
&& is_numeric($_REQUEST['id'])) {

if ($form->getFromDB((int) $_REQUEST['id'])) {
if ($form->fields['is_active'] == '0') {
Html::displayNotFoundError();
}
if ($form->fields['access_rights'] != PluginFormcreatorForm::ACCESS_PUBLIC) {
Session::checkLoginUser();
if (!$form->checkEntity(true)) {
Expand Down

0 comments on commit 5d4489d

Please sign in to comment.