diff --git a/src/app/organization/organizationPeopleEditController.js b/src/app/organization/organizationPeopleEditController.js index 589c261d68..270858e538 100644 --- a/src/app/organization/organizationPeopleEditController.js +++ b/src/app/organization/organizationPeopleEditController.js @@ -22,6 +22,8 @@ }; } } + $scope.email = user.Email; + $scope.type = user.Type; $scope.selectedSubvaults = subvaults; }); }); @@ -76,6 +78,7 @@ } apiService.organizationUsers.put({ orgId: $state.params.orgId, id: id }, { + type: $scope.type, subvaults: subvaults }, function () { $uibModalInstance.close(); diff --git a/src/app/organization/organizationPeopleInviteController.js b/src/app/organization/organizationPeopleInviteController.js index 169d5ee6d9..67cb91ae33 100644 --- a/src/app/organization/organizationPeopleInviteController.js +++ b/src/app/organization/organizationPeopleInviteController.js @@ -64,6 +64,7 @@ apiService.organizationUsers.invite({ orgId: $state.params.orgId }, { email: model.email, + type: model.type, subvaults: subvaults }, function () { $uibModalInstance.close(); diff --git a/src/app/organization/views/organizationPeopleEdit.html b/src/app/organization/views/organizationPeopleEdit.html index 5510151355..671081c166 100644 --- a/src/app/organization/views/organizationPeopleEdit.html +++ b/src/app/organization/views/organizationPeopleEdit.html @@ -1,9 +1,30 @@