1
0
mirror of https://github.com/bitwarden/web synced 2025-12-16 08:13:22 +00:00

resolve issues with id on api calls

This commit is contained in:
Kyle Spearrin
2017-05-10 14:20:45 -04:00
parent ea24d72f01
commit e03d4d52c4
4 changed files with 29 additions and 19 deletions

View File

@@ -84,14 +84,18 @@
}
}
$scope.submitPromise = apiService.organizationUsers.put({ orgId: $state.params.orgId, id: id }, {
type: $scope.type,
collections: collections,
accessAll: $scope.accessAll
}, function () {
$analytics.eventTrack('Edited User');
$uibModalInstance.close();
}).$promise;
$scope.submitPromise = apiService.organizationUsers.put(
{
orgId: $state.params.orgId,
id: id
}, {
type: $scope.type,
collections: collections,
accessAll: $scope.accessAll
}, function () {
$analytics.eventTrack('Edited User');
$uibModalInstance.close();
}).$promise;
};
$scope.close = function () {