Files
librenms-librenms/html/includes/graphs/global/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

8 lines
96 B
PHP

<?php
use LibreNMS\Authentication\Auth;
if (Auth::user()->hasGlobalRead()) {
$auth = 1;
}