Skip to content

Commit a00140b

Browse files
authored
Fix: front/ check (#467)
* Fix: front/ check * stan
1 parent e776aea commit a00140b

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed

front/export.csv.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030

3131
require '../../../inc/includes.php';
3232

33+
Session::checkRight(PluginDatainjectionClientInjection::$rightname, READ);
34+
3335
PluginDatainjectionClientInjection::exportErrorsInCSV();

front/export.pdf.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030

3131
require '../../../inc/includes.php';
3232

33+
Session::checkRight(PluginDatainjectionClientInjection::$rightname, READ);
34+
3335
PluginDatainjectionModel::exportAsPDF($_GET['models_id']);

front/info.form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030

3131
require '../../../inc/includes.php';
32+
Session::checkLoginUser();
3233

3334
/* Update mappings */
3435
if (isset($_POST["update"])) {

front/mapping.form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
require '../../../inc/includes.php';
3232

33+
Session::checkRight('plugin_datainjection_model', UPDATE);
34+
3335
/* Update mappings */
3436
if (isset($_POST["update"])) {
3537
$at_least_one_mandatory = false;

front/model.form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030

3131
require '../../../inc/includes.php';
32+
Session::checkLoginUser();
3233

3334
if (!isset($_GET["id"])) {
3435
$_GET["id"] = "";

front/model.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030

3131
require '../../../inc/includes.php';
32+
Session::checkLoginUser();
3233

3334
Html::header(
3435
PluginDatainjectionModel::getTypeName(),

0 commit comments

Comments
 (0)