mirror of
https://github.com/bitwarden/web
synced 2025-12-16 16:23:31 +00:00
rename AccessAllCollections => AccessAll
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
}
|
||||
$scope.email = user.Email;
|
||||
$scope.type = user.Type;
|
||||
$scope.accessAllCollections = user.AccessAllCollections;
|
||||
$scope.accessAll = user.AccessAll;
|
||||
$scope.selectedCollections = collections;
|
||||
});
|
||||
});
|
||||
@@ -76,7 +76,7 @@
|
||||
$scope.submitPromise = null;
|
||||
$scope.submit = function (model) {
|
||||
var collections = [];
|
||||
if (!$scope.accessAllCollections) {
|
||||
if (!$scope.accessAll) {
|
||||
for (var collectionId in $scope.selectedCollections) {
|
||||
if ($scope.selectedCollections.hasOwnProperty(collectionId)) {
|
||||
collections.push($scope.selectedCollections[collectionId]);
|
||||
@@ -87,7 +87,7 @@
|
||||
$scope.submitPromise = apiService.organizationUsers.put({ orgId: $state.params.orgId, id: id }, {
|
||||
type: $scope.type,
|
||||
collections: collections,
|
||||
accessAllCollections: $scope.accessAllCollections
|
||||
accessAll: $scope.accessAll
|
||||
}, function () {
|
||||
$analytics.eventTrack('Edited User');
|
||||
$uibModalInstance.close();
|
||||
|
||||
Reference in New Issue
Block a user