mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
ae3b9f97d9
refs https://github.com/TryGhost/Ghost/issues/9314 * added save button for contributor * hide tag filter & redirect to posts.index if post is published * update editor controller test to need session service
24 lines
500 B
JavaScript
24 lines
500 B
JavaScript
import Mixin from '@ember/object/mixin';
|
|
|
|
export default Mixin.create({
|
|
transitionAuthor() {
|
|
return (user) => {
|
|
if (user.get('isAuthorOrContributor')) {
|
|
return this.transitionTo('team.user', user);
|
|
}
|
|
|
|
return user;
|
|
};
|
|
},
|
|
|
|
transitionEditor() {
|
|
return (user) => {
|
|
if (user.get('isEditor')) {
|
|
return this.transitionTo('team');
|
|
}
|
|
|
|
return user;
|
|
};
|
|
}
|
|
});
|