Files
librenms-librenms/html/includes/graphs/customer/auth.inc.php
Tony Murray 7250376104 refactor: Don't access $_SESSION directly for Auth (#8513)
* Don't access $_SESSION directly for Auth

* fix style

* add property annotations
2018-04-07 21:55:28 +01:00

11 lines
203 B
PHP

<?php
// FIXME - wtfbbq
use LibreNMS\Authentication\Auth;
if (Auth::user()->hasGlobalRead() || $auth) {
$id = mres($vars['id']);
$title = generate_device_link($device);
$auth = true;
}