fix: Fixed device group rule suggest, Auth before init (#8538)

* Fix Auth before init

* Fix Auth before init
This commit is contained in:
Tony Murray
2018-04-10 10:56:22 -05:00
committed by Neil Lathwood
parent d1ad2696d1
commit a21c0bccc4
2 changed files with 6 additions and 8 deletions

View File

@@ -17,14 +17,13 @@
use LibreNMS\Authentication\Auth;
session_start();
$init_modules = array('web', 'auth');
require realpath(__DIR__ . '/..') . '/includes/init.php';
if (!Auth::check()) {
die('Unauthorized.');
}
$init_modules = array('web');
require realpath(__DIR__ . '/..') . '/includes/init.php';
set_debug($_REQUEST['debug']);
/**

View File

@@ -25,14 +25,13 @@
use LibreNMS\Authentication\Auth;
session_start();
$init_modules = array('web', 'auth');
require realpath(__DIR__ . '/..') . '/includes/init.php';
if (!Auth::check()) {
die('Unauthorized.');
}
$init_modules = array('web');
require realpath(__DIR__ . '/..') . '/includes/init.php';
set_debug($_REQUEST['debug']);
/**