0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Removed invitedBy from admin API: invitation endpoint (#10291)

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
This commit is contained in:
Katharina Irrgang 2018-12-17 14:16:39 +01:00 committed by GitHub
parent 799857b77a
commit 5d2ab19881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}]};
});
}