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 () {
|
resendInvite: function () {
|
||||||
var userData = {};
|
var fullUserData = this.toJSON(),
|
||||||
|
userData = {
|
||||||
userData.email = this.get('email');
|
email: fullUserData.email,
|
||||||
|
roles: fullUserData.roles
|
||||||
|
};
|
||||||
|
|
||||||
return ic.ajax.request(this.get('ghostPaths.url').api('users'), {
|
return ic.ajax.request(this.get('ghostPaths.url').api('users'), {
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
|
Loading…
Add table
Reference in a new issue