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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
247 B
JavaScript
Raw Normal View History

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