From 2efffb810d89f56cf2e128b536b79925bd5f9638 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Mon, 14 Sep 2015 20:21:16 +0100 Subject: Load applicable users/groups correctly --- apps/files_external/js/settings.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 = $(''); $tr.append(priorityEl); -- cgit v1.2.3