Load applicable users/groups correctly
This commit is contained in:
parent
28876bf463
commit
2efffb810d
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue