Load applicable users/groups correctly

This commit is contained in:
Robin McCorkell 2015-09-14 20:21:16 +01:00
parent 28876bf463
commit 2efffb810d

View file

@ -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);