mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:26:35 +08:00
12 lines
277 B
JavaScript
12 lines
277 B
JavaScript
import Route from "@ember/routing/route";
|
|
|
|
export default class AdminCustomizeIndexRoute extends Route {
|
|
beforeModel() {
|
|
if (this.currentUser.admin) {
|
|
this.transitionTo("adminCustomizeThemes");
|
|
} else {
|
|
this.transitionTo("adminWatchedWords");
|
|
}
|
|
}
|
|
}
|