mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 12:51:46 +00:00
Take default features from settings
This commit is contained in:
parent
1c8a1d3002
commit
ca1ebd0413
2 changed files with 9 additions and 7 deletions
|
@ -26,9 +26,9 @@ UserSchema = new Schema
|
||||||
pdfViewer : {type : String, default: "pdfjs"}
|
pdfViewer : {type : String, default: "pdfjs"}
|
||||||
}
|
}
|
||||||
features : {
|
features : {
|
||||||
collaborators: {type:Number, default:1}
|
collaborators: { type:Number, default: Settings.defaultFeatures.collaborators }
|
||||||
versioning: {type:Boolean, default:false}
|
versioning: { type:Boolean, default: Settings.defaultFeatures.versioning }
|
||||||
dropbox: {type:Boolean, default:false}
|
dropbox: { type:Boolean, default: Settings.defaultFeatures.dropbox }
|
||||||
}
|
}
|
||||||
featureSwitches : {
|
featureSwitches : {
|
||||||
dropbox: {type:Boolean, default:true},
|
dropbox: {type:Boolean, default:true},
|
||||||
|
|
|
@ -112,14 +112,16 @@ module.exports =
|
||||||
#
|
#
|
||||||
# You can select the features that are enabled by default for new
|
# You can select the features that are enabled by default for new
|
||||||
# new users.
|
# new users.
|
||||||
|
defaultFeatures: defaultFeatures =
|
||||||
|
collaborators: -1
|
||||||
|
dropbox: true
|
||||||
|
versioning: true
|
||||||
|
|
||||||
plans: plans = [{
|
plans: plans = [{
|
||||||
planCode: "personal"
|
planCode: "personal"
|
||||||
name: "Personal"
|
name: "Personal"
|
||||||
price: 0
|
price: 0
|
||||||
features:
|
features: defaultFeatures
|
||||||
collaborators: -1
|
|
||||||
dropbox: true
|
|
||||||
versioning: true
|
|
||||||
}]
|
}]
|
||||||
|
|
||||||
# Spelling languages
|
# Spelling languages
|
||||||
|
|
Loading…
Reference in a new issue