Ghost/ghost/admin/app/mixins/current-user-settings.js
Peter Zimon 9568f703c3 Fixed staff tests
- fixed all staff related tests after Admin route restructure
2021-11-04 09:40:24 +01:00

16 lines
362 B
JavaScript

import Mixin from '@ember/object/mixin';
export default Mixin.create({
transitionAuthor(user) {
if (user.isAuthorOrContributor) {
return this.transitionTo('settings.staff.user', user);
}
},
transitionEditor(user) {
if (user.isEditor) {
return this.transitionTo('settings.staff');
}
}
});