discourse/app/assets/javascripts/admin/addon/routes/admin-customize-index.js

11 lines
247 B
JavaScript

import Route from "@ember/routing/route";
export default Route.extend({
beforeModel() {
if (this.currentUser.admin) {
this.transitionTo("adminCustomizeThemes");
} else {
this.transitionTo("adminWatchedWords");
}
},
});