diff options
author | Udo Walter | 2017-10-03 20:07:15 +0200 |
---|---|---|
committer | Udo Walter | 2017-10-03 20:07:15 +0200 |
commit | 3941f2482e26590e7f0f24147bc87740ab7f18af (patch) | |
tree | b782293185db8ea8847b335628fb709f2928b69f /modules-available/locations/inc | |
parent | [internetaccess] implemented new permission system (diff) | |
download | slx-admin-3941f2482e26590e7f0f24147bc87740ab7f18af.tar.gz slx-admin-3941f2482e26590e7f0f24147bc87740ab7f18af.tar.xz slx-admin-3941f2482e26590e7f0f24147bc87740ab7f18af.zip |
[locations] implemented new permission system
Diffstat (limited to 'modules-available/locations/inc')
-rw-r--r-- | modules-available/locations/inc/location.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php index 8b2ef262..c2bf14ef 100644 --- a/modules-available/locations/inc/location.inc.php +++ b/modules-available/locations/inc/location.inc.php @@ -352,7 +352,8 @@ class Location */ public static function getSubnets() { - $res = Database::simpleQuery("SELECT startaddr, endaddr, locationid FROM subnet"); + $res = Database::simpleQuery("SELECT startaddr, endaddr, locationid FROM subnet WHERE locationid IN (:locations)", + array("locations" => User::getAllowedLocations("subnetlist.view"))); $subnets = array(); while ($row = $res->fetch(PDO::FETCH_ASSOC)) { settype($row['locationid'], 'int'); |