diff --git a/html/includes/graphs/customer/auth.inc.php b/html/includes/graphs/customer/auth.inc.php
index 0a8aaf4d7..9485aab9c 100755
--- a/html/includes/graphs/customer/auth.inc.php
+++ b/html/includes/graphs/customer/auth.inc.php
@@ -1,6 +1,6 @@
= "5" || $config['allow_unauth_graphs'];)
+if ($_SESSION['userlevel'] >= "5" || $config['allow_unauth_graphs'])
{
$id = mres($_GET['id']);
$title = generate_device_link($device);