Take default features from settings

This commit is contained in:
James Allen 2014-02-22 10:50:59 +00:00
parent 1c8a1d3002
commit ca1ebd0413
2 changed files with 9 additions and 7 deletions

View file

@ -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},

View file

@ -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