15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class AdminCustomizeIndexRoute extends Route {
|
|
@service router;
|
|
|
|
beforeModel() {
|
|
if (this.currentUser.admin) {
|
|
this.router.transitionTo("adminCustomizeThemes");
|
|
} else {
|
|
this.router.transitionTo("adminWatchedWords");
|
|
}
|
|
}
|
|
}
|