overleaf/server-ce/hotfix/2.0.2/2-read-only-access.patch

12 lines
358 B
Diff
Raw Normal View History

2019-12-10 09:06:40 -05:00
--- 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(