summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-14 20:21:16 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-11-21 22:54:21 +0000
commit2efffb810d89f56cf2e128b536b79925bd5f9638 (patch)
treed533179ee572cd1b83a640f145978d84a02b332c
parent28876bf46363116218c48021ddf556c53d5256f5 (diff)
downloadnextcloud-server-2efffb810d89f56cf2e128b536b79925bd5f9638.tar.gz
nextcloud-server-2efffb810d89f56cf2e128b536b79925bd5f9638.zip
Load applicable users/groups correctly
-rw-r--r--apps/files_external/js/settings.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index c9badb2f728..d2ff23e89b8 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -796,6 +796,19 @@ MountConfigListView.prototype = _.extend({
});
}
+ var applicable = [];
+ if (storageConfig.applicableUsers) {
+ applicable = applicable.concat(storageConfig.applicableUsers);
+ }
+ if (storageConfig.applicableGroups) {
+ applicable = applicable.concat(
+ _.map(storageConfig.applicableGroups, function(group) {
+ return group+'(group)';
+ })
+ );
+ }
+ $tr.find('.applicableUsers').val(applicable).trigger('change');
+
var priorityEl = $('<input type="hidden" class="priority" value="' + backend.priority + '" />');
$tr.append(priorityEl);