closed #1260, closed #1261

v1.18.x
Julian Lam 11 years ago
parent 04e0c58b84
commit fdc6b004c5

@ -291,7 +291,7 @@ var async = require('async'),
// Check if an administrator needs to be created // Check if an administrator needs to be created
var Groups = require('./groups'); var Groups = require('./groups');
Groups.get('administrators', {}, function (err, groupObj) { Groups.get('administrators', {}, function (err, groupObj) {
if (groupObj.memberCount > 0) { if (!err && groupObj && groupObj.memberCount > 0) {
winston.info('Administrator found, skipping Admin setup'); winston.info('Administrator found, skipping Admin setup');
next(); next();
} else { } else {

Loading…
Cancel
Save