summaryrefslogtreecommitdiffstats
path: root/modules-available/locations
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-01 18:57:21 +0100
committerSimon Rettberg2017-12-01 18:57:21 +0100
commit22997e6c4f41c2186849e86bb923ec2f4a00e308 (patch)
tree52912c3be6ae7c87e514db0849b7de611f42ade6 /modules-available/locations
parent<install.php> add another button at the top (diff)
downloadslx-admin-22997e6c4f41c2186849e86bb923ec2f4a00e308.tar.gz
slx-admin-22997e6c4f41c2186849e86bb923ec2f4a00e308.tar.xz
slx-admin-22997e6c4f41c2186849e86bb923ec2f4a00e308.zip
[location] WTF?
Diffstat (limited to 'modules-available/locations')
-rw-r--r--modules-available/locations/inc/location.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php
index 42026f8b..0576e660 100644
--- a/modules-available/locations/inc/location.inc.php
+++ b/modules-available/locations/inc/location.inc.php
@@ -385,8 +385,7 @@ class Location
*/
public static function getSubnets()
{
- $res = Database::simpleQuery("SELECT startaddr, endaddr, locationid FROM subnet WHERE locationid IN (:locations)",
- array("locations" => User::getAllowedLocations("subnetlist.view")));
+ $res = Database::simpleQuery("SELECT startaddr, endaddr, locationid FROM subnet");
$subnets = array();
while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
settype($row['locationid'], 'int');