mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Fixed incompatibilities between overleaf.com and community (#2028)
GitOrigin-RevId: fc1e4e3e179cab75144043d83197f09e4f6c7642
This commit is contained in:
committed by
sharelatex
parent
7d1bab4e88
commit
6006c8ca79
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user