Allow empty users in config.json

This commit is contained in:
Paul Sori 2018-01-06 02:57:35 -05:00
parent 2c7c22038d
commit ce48670747

View File

@ -41,8 +41,8 @@ exports.setup = function(loadJson, rootDir){
}
}
if(!loadJson.users || typeof loadJson.users !== 'object'){
errorArray.push('No Users');
if(loadJson.users && typeof loadJson.users !== 'object'){
errorArray.push('Users need to be an object');
loadJson.error = errorArray;
return loadJson;
}