mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 23:13:48 +08:00
e53b474557
Moderators were unable to access `/admin/customize/watched_words`
feature. This was regressed in 61860098d9
11 lines
247 B
JavaScript
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");
|
|
}
|
|
},
|
|
});
|