Skip to content

Commit

Permalink
fix: check right before export
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Sep 9, 2021
1 parent 7ae01dc commit af04e78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
Html::displayNotFoundError();
}

Session::checkRight('entity', UPDATE);

$form = new PluginFormcreatorForm;
$export_array = ['schema_version' => PLUGIN_FORMCREATOR_SCHEMA_VERSION, 'forms' => []];
foreach ($_GET['plugin_formcreator_forms_id'] as $id) {
Expand Down

0 comments on commit af04e78

Please sign in to comment.