mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
|
import AdminRoute from 'ghost-admin/routes/admin';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class MembersActivityRoute extends AdminRoute {
|
||
|
@service feature;
|
||
|
|
||
|
beforeModel() {
|
||
|
super.beforeModel(...arguments);
|
||
|
|
||
|
if (!this.feature.membersActivityFeed) {
|
||
|
return this.transitionTo('home');
|
||
|
}
|
||
|
}
|
||
|
}
|