mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 19:46:37 +03:00
9568f703c3
- fixed all staff related tests after Admin route restructure
16 lines
362 B
JavaScript
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');
|
|
}
|
|
}
|
|
});
|