Fixing resend user invitation

closes #3396
- passing role when resending a users invitation
This commit is contained in:
Maurice Williams 2014-07-24 22:42:55 -04:00
parent a9a5acf2f2
commit 69642e8e53

View File

@ -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',