Config: Add option disabled for modules configuration

This commit is contained in:
Rodrigo Ramírez Norambuena
2016-11-14 14:43:30 -03:00
parent c054b3b0de
commit 62567264f0
4 changed files with 8 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ var App = function() {
for (var m in config.modules) {
var module = config.modules[m];
if (modules.indexOf(module.module) === -1) {
if (modules.indexOf(module.module) === -1 && !module.disabled) {
modules.push(module.module);
}
}
@@ -184,4 +184,4 @@ var App = function() {
};
};
module.exports = new App();
module.exports = new App();