Skip to content

Commit

Permalink
Removed invitedBy from admin API: invitation endpoint (#10291)
Browse files Browse the repository at this point in the history
refs #10286

- we want to deprecate all `x_by` fields
- we would like to get rid of all usages to be able to easily remove the fields in the future
- `invitedBy` is not used in the admin client
  • Loading branch information
kirrg001 committed Dec 17, 2018
1 parent 799857b commit 5d2ab19
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/server/api/v0.1/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,7 @@ authentication = {
return {invitation: [{valid: false}]};
}

return models.User.findOne({id: invite.get('created_by')})
.then((user) => {
return {invitation: [{valid: true, invitedBy: user.get('name')}]};
});
return {invitation: [{valid: true}]};
});
}

Expand Down

0 comments on commit 5d2ab19

Please sign in to comment.