mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 03:22:21 +03:00
10b48b1d6d
no issue - tour items in general are being removed - preparation for full removal of all tour-related code (to be done in following commit to allow future revert without merge errors through template divergence)
16 lines
431 B
JavaScript
16 lines
431 B
JavaScript
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class LaunchRoute extends AuthenticatedRoute {
|
|
@service session;
|
|
|
|
beforeModel() {
|
|
super.beforeModel(...arguments);
|
|
return this.session.user.then((user) => {
|
|
if (!user.isOwner) {
|
|
return this.transitionTo('home');
|
|
}
|
|
});
|
|
}
|
|
}
|