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"}
}
features : {
collaborators: {type:Number, default:1}
versioning: {type:Boolean, default:false}
dropbox: {type:Boolean, default:false}
collaborators: { type:Number, default: Settings.defaultFeatures.collaborators }
versioning: { type:Boolean, default: Settings.defaultFeatures.versioning }
dropbox: { type:Boolean, default: Settings.defaultFeatures.dropbox }
}
featureSwitches : {
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
# new users.
defaultFeatures: defaultFeatures =
collaborators: -1
dropbox: true
versioning: true
plans: plans = [{
planCode: "personal"
name: "Personal"
price: 0
features:
collaborators: -1
dropbox: true
versioning: true
features: defaultFeatures
}]
# Spelling languages