diff --git a/src/app/organization/organizationCollectionsUsersController.js b/src/app/organization/organizationCollectionsUsersController.js index 30967da2af..004d52dd6e 100644 --- a/src/app/organization/organizationCollectionsUsersController.js +++ b/src/app/organization/organizationCollectionsUsersController.js @@ -27,7 +27,7 @@ type: userList.Data[i].Type, status: userList.Data[i].Status, readOnly: userList.Data[i].ReadOnly, - accessAllCollections: userList.Data[i].AccessAllCollections + accessAll: userList.Data[i].AccessAll }); } $scope.users = users; diff --git a/src/app/organization/organizationPeopleController.js b/src/app/organization/organizationPeopleController.js index 308a95e9f9..1f9f0b1f4b 100644 --- a/src/app/organization/organizationPeopleController.js +++ b/src/app/organization/organizationPeopleController.js @@ -94,7 +94,7 @@ email: list.Data[i].Email, status: list.Data[i].Status, type: list.Data[i].Type, - accessAllCollections: list.Data[i].AccessAllCollections + accessAll: list.Data[i].AccessAll }; users.push(user); diff --git a/src/app/organization/organizationPeopleEditController.js b/src/app/organization/organizationPeopleEditController.js index 69efd33373..3b6c13ff0e 100644 --- a/src/app/organization/organizationPeopleEditController.js +++ b/src/app/organization/organizationPeopleEditController.js @@ -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(); diff --git a/src/app/organization/organizationPeopleInviteController.js b/src/app/organization/organizationPeopleInviteController.js index d8ad5c9801..f0b0e2e63a 100644 --- a/src/app/organization/organizationPeopleInviteController.js +++ b/src/app/organization/organizationPeopleInviteController.js @@ -64,7 +64,7 @@ $scope.submit = function (model) { var collections = []; - if (!model.accessAllCollections) { + if (!model.accessAll) { for (var collectionId in $scope.selectedCollections) { if ($scope.selectedCollections.hasOwnProperty(collectionId)) { collections.push($scope.selectedCollections[collectionId]); @@ -76,7 +76,7 @@ email: model.email, type: model.type, collections: collections, - accessAllCollections: model.accessAllCollections + accessAll: model.accessAll }, function () { $analytics.eventTrack('Invited User'); $uibModalInstance.close(); diff --git a/src/app/organization/views/organizationCollectionsUsers.html b/src/app/organization/views/organizationCollectionsUsers.html index f7bfcc9e92..aaba7f52ef 100644 --- a/src/app/organization/views/organizationCollectionsUsers.html +++ b/src/app/organization/views/organizationCollectionsUsers.html @@ -43,7 +43,7 @@