0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Update Users API to handle role objects or ids

Closes #3357
- API method User#edit now handles User objects that have either
  an array of Role ids or objects.
- Fixed error handler notification on upload modal controller.
This commit is contained in:
Jason Williams 2014-07-22 05:27:50 +00:00
parent 1b5a682e13
commit 6c5d1a6267

View file

@ -8,7 +8,9 @@ var UploadController = Ember.Controller.extend({
this.get('model').save().then(function (model) {
self.notifications.showSuccess('Saved');
return model;
}).catch(this.notifications.showErrors);
}).catch(function (err) {
self.notifications.showErrors(err);
});
},
confirmReject: function () {