mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
13ceee3e9f
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;
|
|
};
|
|
}
|
|
});
|