mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #469 from sharelatex/ja-feature-flag-rename
Split references feature flag into mendeley and referencesSearch
This commit is contained in:
commit
0a00dea610
2 changed files with 38 additions and 29 deletions
|
@ -35,10 +35,17 @@ module.exports = ProjectEditorHandler =
|
|||
compileGroup:"standard"
|
||||
templates: false
|
||||
references: false
|
||||
referencesSearch: false
|
||||
mendeley: false
|
||||
trackChanges: false
|
||||
trackChangesVisible: ProjectEditorHandler.trackChangesAvailable
|
||||
})
|
||||
|
||||
# Originally these two feature flags were both signalled by the now-deprecated `references` flag.
|
||||
# For older users, the presence of the `references` feature flag should still turn on these features.
|
||||
result.features.referencesSearch = result.features.referencesSearch or result.features.references
|
||||
result.features.mendeley = result.features.mendeley or result.features.references
|
||||
|
||||
return result
|
||||
|
||||
buildOwnerAndMembersViews: (members) ->
|
||||
|
|
|
@ -39,6 +39,8 @@ UserSchema = new Schema
|
|||
templates: { type:Boolean, default: Settings.defaultFeatures.templates }
|
||||
references: { type:Boolean, default: Settings.defaultFeatures.references }
|
||||
trackChanges: { type:Boolean, default: Settings.defaultFeatures.trackChanges }
|
||||
mendeley: { type:Boolean, default: Settings.defaultFeatures.mendeley }
|
||||
referencesSearch: { type:Boolean, default: Settings.defaultFeatures.referencesSearch }
|
||||
}
|
||||
referal_id : {type:String, default:() -> uuid.v4().split("-")[0]}
|
||||
refered_users: [ type:ObjectId, ref:'User' ]
|
||||
|
|
Loading…
Reference in a new issue