summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-22 10:58:23 +0200
committerSimon Rettberg2020-07-22 10:58:23 +0200
commit66f9388d7fd4eb26cd70842a7136b6d54b64ebf9 (patch)
tree68ffe275e531b526c515a47a29f5920a16ca281e /modules-available
parent[exams] Collapse old exams (-90 days) (diff)
downloadslx-admin-66f9388d7fd4eb26cd70842a7136b6d54b64ebf9.tar.gz
slx-admin-66f9388d7fd4eb26cd70842a7136b6d54b64ebf9.tar.xz
slx-admin-66f9388d7fd4eb26cd70842a7136b6d54b64ebf9.zip
[remoteaccess] Fix: "active" flag was not honored in getconfig hook
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/remoteaccess/baseconfig/getconfig.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/remoteaccess/baseconfig/getconfig.inc.php b/modules-available/remoteaccess/baseconfig/getconfig.inc.php
index 384f498f..8aa6430e 100644
--- a/modules-available/remoteaccess/baseconfig/getconfig.inc.php
+++ b/modules-available/remoteaccess/baseconfig/getconfig.inc.php
@@ -4,7 +4,9 @@
$locationId = ConfigHolder::get('SLX_LOCATIONS');
if ($locationId !== false) {
$locationId = (int)$locationId;
- $ret = Database::queryFirst("SELECT locationid FROM remoteaccess_x_location WHERE locationid = :lid",
+ $ret = Database::queryFirst("SELECT l.locationid FROM remoteaccess_x_location l
+ INNER JOIN remoteaccess_group g USING (groupid)
+ WHERE locationid = :lid AND g.active = 1",
['lid' => $locationId], true); // TODO Remove true after next point release (2020-05-12)
if ($ret !== false) {
// TODO Properly merge