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) {
|
||||
const path = transition.intent.url;
|
||||
|
||||
if (!this.currentUser && this.siteSettings.login_required) {
|
||||
return;
|
||||
}
|
||||
|
||||
return ajax("/permalink-check.json", {
|
||||
data: { path },
|
||||
}).then((results) => {
|
||||
|
|
Loading…
Reference in New Issue