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:
parent
799857b77a
commit
5d2ab19881
1 changed files with 1 additions and 4 deletions
|
@ -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}]};
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue