import Ember from 'ember'; var CurrentUserSettings = Ember.Mixin.create({ transitionAuthor: function () { var self = this; return function (user) { if (user.get('isAuthor')) { return self.transitionTo('team.user', user); } return user; }; }, transitionEditor: function () { var self = this; return function (user) { if (user.get('isEditor')) { return self.transitionTo('team'); } return user; }; } }); export default CurrentUserSettings;