2019-10-23 12:39:32 -04:00
|
|
|
import Route from "@ember/routing/route";
|
2023-03-15 09:17:51 -04:00
|
|
|
|
|
|
|
export default class AdminCustomizeIndexRoute extends Route {
|
2015-08-06 12:14:59 -04:00
|
|
|
beforeModel() {
|
2021-04-23 09:21:45 -04:00
|
|
|
if (this.currentUser.admin) {
|
|
|
|
this.transitionTo("adminCustomizeThemes");
|
|
|
|
} else {
|
|
|
|
this.transitionTo("adminWatchedWords");
|
|
|
|
}
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|