From aaeecc81cd4e7d484f3b58c8b629ccefa71c190f Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Fri, 26 Feb 2010 15:30:51 +0000 Subject: [PATCH] - BUGFIX: Access privilege fix on the storage overview. git-svn-id: http://www.observium.org/svn/observer/trunk@965 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/storage.php b/html/pages/storage.php index bb93b2ab8..8560129a3 100644 --- a/html/pages/storage.php +++ b/html/pages/storage.php @@ -3,7 +3,7 @@ if($_SESSION['userlevel'] >= '5') { $sql = "SELECT * FROM `storage` AS S, `devices` AS D WHERE S.device_id = D.device_id ORDER BY D.hostname, S.storage_descr"; } else { - $sql = "SELECT * FROM `storage` AS S, `devices` AS D, devices_perms as P WHERE D.device_id = D.device_id AND "; + $sql = "SELECT * FROM `storage` AS S, `devices` AS D, devices_perms as P WHERE S.device_id = D.device_id AND "; $sql .= "D.device_id = P.device_id AND P.user_id = '" . $_SESSION['user_id'] . "' ORDER BY D.hostname, S.storage_descr"; }