1
0
mirror of https://github.com/bitwarden/web synced 2025-12-16 16:23:31 +00:00

rename AccessAllCollections => AccessAll

This commit is contained in:
Kyle Spearrin
2017-04-27 15:36:18 -04:00
parent b5f8b1014e
commit 54172c441f
8 changed files with 24 additions and 24 deletions

View File

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