mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Merge pull request #3019 from pblasquez/pblasquez-unauth_graph
skip graph.php authentication if configured
This commit is contained in:
+3
-2
@@ -40,8 +40,9 @@ require_once '../includes/dbFacile.php';
|
||||
require_once '../includes/rewrites.php';
|
||||
require_once 'includes/functions.inc.php';
|
||||
require_once '../includes/rrdtool.inc.php';
|
||||
require_once 'includes/authenticate.inc.php';
|
||||
|
||||
if($config['allow_unauth_graphs'] != true) {
|
||||
require_once 'includes/authenticate.inc.php';
|
||||
}
|
||||
require 'includes/graphs/graph.inc.php';
|
||||
|
||||
$console_color = new Console_Color2();
|
||||
|
||||
@@ -568,7 +568,7 @@ $config['irc_alert'] = false;
|
||||
$config['irc_alert_utf8'] = false;
|
||||
|
||||
// Authentication
|
||||
$config['allow_unauth_graphs'] = 0;
|
||||
$config['allow_unauth_graphs'] = false;
|
||||
// Allow graphs to be viewed by anyone
|
||||
$config['allow_unauth_graphs_cidr'] = array();
|
||||
// Allow graphs to be viewed without authorisation from certain IP ranges
|
||||
|
||||
Reference in New Issue
Block a user