mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:47:07 +08:00
15 lines
353 B
JavaScript
15 lines
353 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { 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");
|
|
}
|
|
}
|
|
}
|