Skip to content

Commit cd107c8

Browse files
committed
checkLoginUser
1 parent a69c012 commit cd107c8

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

front/alert.form.php

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

3131
use Glpi\Event;
3232

33+
Session::checkLoginUser();
34+
3335
if (!isset($_GET['id'])) {
3436
$_GET['id'] = '';
3537
}

front/alert.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31+
Session::checkLoginUser();
32+
3133
Html::header(
3234
__('Alerts', 'news'),
3335
$_SERVER['PHP_SELF'],

front/external.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31+
Session::checkLoginUser();
32+
3133
Html::nullHeader(PluginNewsAlert::getTypeName());
3234
$logged = isset($_SESSION['glpiID']);
3335
PluginNewsAlert::displayAlerts(['show_only_login_alerts' => !$logged]);

front/hidden_alerts.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31+
Session::checkLoginUser();
32+
3133
if ($_SESSION['glpiactiveprofile']['interface'] != 'central') {
3234
Html::helpHeader(__('Alerts', 'news'), $_SERVER['PHP_SELF'], $_SESSION['glpiname']);
3335
} else {

0 commit comments

Comments
 (0)