Fixing resend user invitation
closes #3396 - passing role when resending a users invitation
This commit is contained in:
parent
a9a5acf2f2
commit
69642e8e53
@ -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…
Reference in New Issue
Block a user