summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/clientscript.js
diff options
context:
space:
mode:
authorSimon Rettberg2019-08-01 15:09:32 +0200
committerSimon Rettberg2019-08-01 15:09:32 +0200
commit2dbe5a86b26f118e8ce717fcaedfc3ae52b1b06c (patch)
tree373b51f3e05d44f3b7e08733eb6e1eeb7ea501d6 /modules-available/roomplanner/clientscript.js
parent[permissionmanager] Implement caching for permission checks (diff)
downloadslx-admin-2dbe5a86b26f118e8ce717fcaedfc3ae52b1b06c.tar.gz
slx-admin-2dbe5a86b26f118e8ce717fcaedfc3ae52b1b06c.tar.xz
slx-admin-2dbe5a86b26f118e8ce717fcaedfc3ae52b1b06c.zip
[roomplanner] Search only returns clients allowed in that room
Don't return clients that wouldn't be allowed to be assigned to that location according to the rules in the Location class.
Diffstat (limited to 'modules-available/roomplanner/clientscript.js')
-rw-r--r--modules-available/roomplanner/clientscript.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/roomplanner/clientscript.js b/modules-available/roomplanner/clientscript.js
index 823c212a..48311a09 100644
--- a/modules-available/roomplanner/clientscript.js
+++ b/modules-available/roomplanner/clientscript.js
@@ -83,7 +83,7 @@ function loadMachines(query, callback) {
}
}
$.ajax({
- url: '?do=roomplanner&action=getmachines&query=' + encodeURIComponent(query),
+ url: '?do=roomplanner&action=getmachines&query=' + encodeURIComponent(query) + '&locationid=' + locationId,
type: 'GET',
dataType: 'json',
error: function() {