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.

12 lines
277 B
JavaScript
Raw Normal View History

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