Skip to content

Commit 49f5b4e

Browse files
Rom1-Bstonebuzz
andauthored
Fix: front/ check (#86)
* Fix: front/ check * Apply suggestions from code review Co-authored-by: Stanislas <[email protected]> --------- Co-authored-by: Stanislas <[email protected]>
1 parent e7c42c5 commit 49f5b4e

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

front/config.form.php

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

3131
include('../../../inc/includes.php');
3232

33+
Session::checkRight('treeview', UPDATE);
3334

3435
$config = new PluginTreeviewConfig();
3536
if (isset($_POST['update'])) {

front/preference.form.php

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

3131
include('../../../inc/includes.php');
3232

33+
Session::checkLoginUser();
34+
3335
$pref = new PluginTreeviewPreference();
3436

3537
//Save user preferences

front/preference.php

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

3131
include('../../../inc/includes.php');
3232

33+
Session::checkLoginUser();
34+
3335
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
3436
Html::header('TITRE', $_SERVER['PHP_SELF'], 'plugins', 'pluginexampleexample', '');
3537
} else {

0 commit comments

Comments
 (0)