mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixing resend user invitation
closes #3396 - passing role when resending a users invitation
This commit is contained in:
parent
1695631f11
commit
8b747a9593
1 changed files with 5 additions and 3 deletions
|
@ -53,9 +53,11 @@ var User = DS.Model.extend(NProgressSaveMixin, ValidationEngine, {
|
|||
},
|
||||
|
||||
resendInvite: function () {
|
||||
var userData = {};
|
||||
|
||||
userData.email = this.get('email');
|
||||
var fullUserData = this.toJSON(),
|
||||
userData = {
|
||||
email: fullUserData.email,
|
||||
roles: fullUserData.roles
|
||||
};
|
||||
|
||||
return ic.ajax.request(this.get('ghostPaths.url').api('users'), {
|
||||
type: 'POST',
|
||||
|
|
Loading…
Add table
Reference in a new issue