FIX: Don't hit permalink-check if not authorized (#15039)
This commit is contained in:
parent
ceed48f321
commit
bd2e1a8c38
|
@ -6,6 +6,10 @@ export default DiscourseRoute.extend({
|
||||||
model(_, transition) {
|
model(_, transition) {
|
||||||
const path = transition.intent.url;
|
const path = transition.intent.url;
|
||||||
|
|
||||||
|
if (!this.currentUser && this.siteSettings.login_required) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
return ajax("/permalink-check.json", {
|
return ajax("/permalink-check.json", {
|
||||||
data: { path },
|
data: { path },
|
||||||
}).then((results) => {
|
}).then((results) => {
|
||||||
|
|
Loading…
Reference in New Issue