mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't hit permalink-check if not authorized (#15039)
This commit is contained in:
@@ -6,6 +6,10 @@ export default DiscourseRoute.extend({
|
||||
model(_, transition) {
|
||||
const path = transition.intent.url;
|
||||
|
||||
if (!this.currentUser && this.siteSettings.login_required) {
|
||||
return;
|
||||
}
|
||||
|
||||
return ajax("/permalink-check.json", {
|
||||
data: { path },
|
||||
}).then((results) => {
|
||||
|
||||
Reference in New Issue
Block a user