mirror of
https://github.com/bitwarden/browser
synced 2026-01-10 20:43:38 +00:00
group accessall and readonly
This commit is contained in:
@@ -46,12 +46,15 @@
|
||||
$scope.submit = function (model) {
|
||||
var group = {
|
||||
name: model.name,
|
||||
collectionIds: []
|
||||
accessAll: !!model.accessAll
|
||||
};
|
||||
|
||||
for (var id in $scope.selectedCollections) {
|
||||
if ($scope.selectedCollections.hasOwnProperty(id)) {
|
||||
group.collectionIds.push(id);
|
||||
if (!group.accessAll) {
|
||||
group.collectionIds = [];
|
||||
for (var id in $scope.selectedCollections) {
|
||||
if ($scope.selectedCollections.hasOwnProperty(id)) {
|
||||
group.collectionIds.push(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user