mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-17 11:46:28 +08:00
This ensures these routes and templates are not loaded if the user isn't admin. Only affects Persona routes at this point in time.
7 lines
190 B
JavaScript
7 lines
190 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default DiscourseRoute.extend({
|
|
model() {
|
|
return this.modelFor("adminPlugins.show.discourse-ai.ai-personas");
|
|
},
|
|
});
|