mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 06:31:46 +00:00
12 lines
358 B
Diff
12 lines
358 B
Diff
|
--- TokenAccessHandler.js
|
||
|
+++ TokenAccessHandler.js
|
||
|
@@ -255,7 +255,7 @@ const TokenAccessHandler = {
|
||
|
|
||
|
getV1DocPublishedInfo(token, callback) {
|
||
|
// default to allowing access
|
||
|
- if (!Settings.apis || !Settings.apis.v1) {
|
||
|
+ if (!Settings.apis.v1 || !Settings.apis.v1.url) {
|
||
|
return callback(null, { allow: true })
|
||
|
}
|
||
|
V1Api.request(
|