var TransferOwnerController = Ember.Controller.extend({
    actions: {
        confirmAccept: function () {
            var user = this.get('model'),
                url = this.get('ghostPaths.url').api('users', 'owner'),
                self = this;

            self.get('popover').closePopovers();

            ic.ajax.request(url, {
                type: 'PUT',
                data: {
                    owner: [{
                        'id': user.get('id')
                    }]
                }
            }).then(function () {
                self.notifications.closePassive();
                self.notifications.showSuccess('Ownership successfully transferred to ' + user.get('name'));
            }).catch(function (error) {
                self.notifications.closePassive();
                self.notifications.showAPIError(error);
            });
        },

        confirmReject: function () {
            return false;
        }
    },

    confirm: {
        accept: {
            text: 'YEP - I\'M SURE',
            buttonClass: 'button-delete'
        },
        reject: {
            text: 'CANCEL',
            buttonClass: 'button'
        }
    }
});

export default TransferOwnerController;
@@ -521,35 +521,593 @@
 .then(function (
-) %7B
+response) %7B%0A                // manually update the roles for the users that just changed roles%0A                // because store.pushPayload is not working with embedded relations%0A                if (response && Ember.isArray(response.users)) %7B%0A                    response.users.forEach(function (userJSON) %7B%0A                        var user = self.store.getById('user', userJSON.id),%0A                            role = self.store.getById('role', userJSON.roles%5B0%5D.id);%0A%0A                        user.set('role', role);%0A                    %7D);%0A                %7D%0A
 %0A               

Update user roles in store after owner transfer