diff options
author | Simon Bartlett <simon@securitycompass.com> | 2015-02-06 17:32:46 -0500 |
---|---|---|
committer | Simon Bartlett <simon@securitycompass.com> | 2015-02-06 17:32:46 -0500 |
commit | 12682131be4f6718fadfcbfcd92fa66c2a753503 (patch) | |
tree | 18dd069ea42ae223d0e3a02aed0af8660014a6d0 /app/core/files.js | |
parent | c8fbb395c2ebec6cfaff0e15fe8bee5eff606192 (diff) | |
download | lets-chat-12682131be4f6718fadfcbfcd92fa66c2a753503.zip lets-chat-12682131be4f6718fadfcbfcd92fa66c2a753503.tar.gz lets-chat-12682131be4f6718fadfcbfcd92fa66c2a753503.tar.bz2 |
Updated config setting names
Diffstat (limited to 'app/core/files.js')
-rw-r--r-- | app/core/files.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/core/files.js b/app/core/files.js index 50ed8ba..f4744cd 100644 --- a/app/core/files.js +++ b/app/core/files.js @@ -24,10 +24,10 @@ FileManager.prototype.create = function(options, cb) { return cb('Files are disabled.'); } - if (settings.restrict_file_types && - settings.allowed_file_types && - settings.allowed_file_types.length && - !_.include(settings.allowed_file_types, options.file.mimetype)) { + if (settings.restrictTypes && + settings.allowedTypes && + settings.allowedTypes.length && + !_.include(settings.allowedTypes, options.file.mimetype)) { return cb('The MIME type ' + options.file.mimetype + ' is not allowed'); } |