Fixed incompatibilities between overleaf.com and community (#2028)

GitOrigin-RevId: fc1e4e3e179cab75144043d83197f09e4f6c7642
This commit is contained in:
Miguel Serrano
2019-08-12 13:27:55 +02:00
committed by sharelatex
parent 7d1bab4e88
commit 6006c8ca79
6 changed files with 43 additions and 4 deletions

View File

@@ -347,6 +347,10 @@ module.exports = ProjectController = {
)
},
v1Projects(cb) {
if (!Features.hasFeature('overleaf-integration')) {
return cb(null, null)
}
return Modules.hooks.fire('findAllV1Projects', user_id, function(
error,
projects
@@ -379,6 +383,9 @@ module.exports = ProjectController = {
)
},
userAffiliations(cb) {
if (!Features.hasFeature('affiliations')) {
return cb(null, null)
}
return getUserAffiliations(user_id, cb)
}
},
@@ -905,7 +912,7 @@ module.exports = ProjectController = {
v1ProjectData = {}
}
const warnings = []
if (v1ProjectData.noConnection) {
if (v1ProjectData.noConnection && Settings.overleaf) {
warnings.push('No V1 Connection')
}
if (v1ProjectData.hasHiddenV1Projects) {