Skip to content

Commit

Permalink
fix(form): access to form not properly checked (#1047)
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry authored Jul 19, 2018
1 parent 3b2051f commit 1a40790
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions front/formdisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
if (isset($_REQUEST['id'])
&& is_numeric($_REQUEST['id'])) {

$form->check($_REQUEST['id'], READ);
if ($form->getFromDB((int) $_REQUEST['id'])) {

if ($form->fields['access_rights'] != PluginFormcreatorForm::ACCESS_PUBLIC) {
Expand Down

0 comments on commit 1a40790

Please sign in to comment.