Skip to content

Commit 6448204

Browse files
authored
Fix: front/ check (#177)
* Fix: front/ check * stan
1 parent 0da760d commit 6448204

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

front/alert.form.php

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

3333
include('../../../inc/includes.php');
3434

35+
Session::checkLoginUser();
36+
3537
if (!isset($_GET['id'])) {
3638
$_GET['id'] = '';
3739
}

front/alert.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::checkRight("plugin_news_alert", READ);
34+
3335
Html::header(
3436
__('Alerts', 'news'),
3537
$_SERVER['PHP_SELF'],

front/hidden_alerts.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::helpHeader(__('Alerts', 'news'), $_SERVER['PHP_SELF'], $_SESSION['glpiname']);
3537
} else {

0 commit comments

Comments
 (0)