mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
unauth graphs null exception (#10483)
This commit is contained in:
@ -322,7 +322,7 @@ function application_permitted($app_id, $device_id = null)
|
||||
|
||||
function device_permitted($device_id)
|
||||
{
|
||||
if (Auth::user()->hasGlobalRead()) {
|
||||
if (Auth::user() && Auth::user()->hasGlobalRead()) {
|
||||
return true;
|
||||
}
|
||||
return \Permissions::canAccessDevice($device_id, Auth::id());
|
||||
|
Reference in New Issue
Block a user