Revert "Replace references feature flag with mendeley and referencesSearch"

This reverts commit 12fdff37f9fd5d47e8446eebc576d8bb9e045aa4.
This commit is contained in:
James Allen 2018-03-28 13:47:34 +01:00
parent 28aef4e72b
commit f13c7fd573
2 changed files with 30 additions and 36 deletions

View file

@ -34,15 +34,11 @@ module.exports = ProjectEditorHandler =
compileTimeout: 60 compileTimeout: 60
compileGroup:"standard" compileGroup:"standard"
templates: false templates: false
references: false
trackChanges: false trackChanges: false
trackChangesVisible: ProjectEditorHandler.trackChangesAvailable trackChangesVisible: ProjectEditorHandler.trackChangesAvailable
}) })
if !result.features.mendeley?
result.features.mendeley = !!result.features.references
if !result.features.referencesSearch?
result.features.referencesSearch = !!result.features.references
return result return result
buildOwnerAndMembersViews: (members) -> buildOwnerAndMembersViews: (members) ->

View file

@ -39,8 +39,6 @@ UserSchema = new Schema
templates: { type:Boolean, default: Settings.defaultFeatures.templates } templates: { type:Boolean, default: Settings.defaultFeatures.templates }
references: { type:Boolean, default: Settings.defaultFeatures.references } references: { type:Boolean, default: Settings.defaultFeatures.references }
trackChanges: { type:Boolean, default: Settings.defaultFeatures.trackChanges } 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]} referal_id : {type:String, default:() -> uuid.v4().split("-")[0]}
refered_users: [ type:ObjectId, ref:'User' ] refered_users: [ type:ObjectId, ref:'User' ]