mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -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 {invitation: [{valid: false}]};
|
||||||
}
|
}
|
||||||
|
|
||||||
return models.User.findOne({id: invite.get('created_by')})
|
return {invitation: [{valid: true}]};
|
||||||
.then((user) => {
|
|
||||||
return {invitation: [{valid: true, invitedBy: user.get('name')}]};
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue