Skip to content

Commit 8906da5

Browse files
committed
Fix: front/ check
1 parent 1be0897 commit 8906da5

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

front/devicecamera.form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use GlpiPlugin\Example\DeviceCamera;
3737

3838
include ('../../../inc/includes.php');
39+
Session::checkLoginUser();
3940

4041
$dropdown = new DeviceCamera();
4142
include (GLPI_ROOT . "/front/dropdown.common.form.php");

front/devicecamera.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
// ----------------------------------------------------------------------
3535

3636
include ('../../../inc/includes.php');
37+
Session::checkLoginUser();
3738

3839
$dropdown = new DeviceCamera();
3940
include (GLPI_ROOT . "/front/dropdown.common.php");

front/dropdown.form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use GlpiPlugin\Example\Dropdown;
3737

3838
include ('../../../inc/includes.php');
39+
Session::checkLoginUser();
3940

4041
Plugin::load('example', true);
4142

front/dropdown.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use GlpiPlugin\Example\Dropdown;
3737

3838
include ('../../../inc/includes.php');
39+
Session::checkLoginUser();
3940

4041
Plugin::load('example', true);
4142

front/example.form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use GlpiPlugin\Example\Example;
3737

3838
include ('../../../inc/includes.php');
39+
Session::checkLoginUser();
3940

4041
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
4142
Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, "");

front/example.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use GlpiPlugin\Example\Example;
3737

3838
include ('../../../inc/includes.php');
39+
Session::checkLoginUser();
3940

4041
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
4142
Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, "");

front/ruletest.form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use GlpiPlugin\Example\RuleTestCollection;
3737

3838
include ('../../../inc/includes.php');
39+
Session::checkLoginUser();
3940

4041
$rulecollection = new RuleTestCollection();
4142

front/ruletest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use GlpiPlugin\Example\RuleTestCollection;
3737

3838
include ('../../../inc/includes.php');
39+
Session::checkLoginUser();
3940

4041
$rulecollection = new RuleTestCollection();
4142

0 commit comments

Comments
 (0)