Only allow users matching the team invite to accept, if the invite was specified for a user (rather than an email)

This commit is contained in:
Joseph Schorr 2014-09-12 14:29:01 -04:00
parent c5ca46a14b
commit 10faa7de84
7 changed files with 24 additions and 21 deletions

View file

@ -2785,9 +2785,9 @@ function ConfirmInviteCtrl($scope, $location, UserService, ApiService, Notificat
ApiService.acceptOrganizationTeamInvite(null, params).then(function(resp) {
NotificationService.update();
$location.path('/organization/' + resp.org + '/teams/' + resp.team);
}, function() {
}, function(resp) {
$scope.loading = false;
$scope.invalid = true;
$scope.invalid = ApiService.getErrorMessage(resp, 'Invalid confirmation code');
});
}
});