Merge pull request #87 from Rom1-B/front_check

Fix: front/ check
This commit is contained in:
Stanislas 2025-05-05 14:40:35 +02:00 committed by GitHub
commit e283c254cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\DeviceCamera;
include ('../../../inc/includes.php');
Session::checkLoginUser();
$dropdown = new DeviceCamera();
include (GLPI_ROOT . "/front/dropdown.common.form.php");

View File

@ -34,6 +34,7 @@
// ----------------------------------------------------------------------
include ('../../../inc/includes.php');
Session::checkLoginUser();
$dropdown = new DeviceCamera();
include (GLPI_ROOT . "/front/dropdown.common.php");

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Dropdown;
include ('../../../inc/includes.php');
Session::checkLoginUser();
Plugin::load('example', true);

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Dropdown;
include ('../../../inc/includes.php');
Session::checkLoginUser();
Plugin::load('example', true);

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Example;
include ('../../../inc/includes.php');
Session::checkLoginUser();
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, "");

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\Example;
include ('../../../inc/includes.php');
Session::checkRight(Example::$rightname, READ);
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
Html::header("TITRE", $_SERVER['PHP_SELF'], "plugins", Example::class, "");

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\RuleTestCollection;
include ('../../../inc/includes.php');
Session::checkLoginUser();
$rulecollection = new RuleTestCollection();

View File

@ -36,6 +36,7 @@
use GlpiPlugin\Example\RuleTestCollection;
include ('../../../inc/includes.php');
Session::checkLoginUser();
$rulecollection = new RuleTestCollection();