mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
closes #2477
This commit is contained in:
@@ -261,7 +261,11 @@ function enableDefaultTheme(next) {
|
||||
function createAdministrator(next) {
|
||||
var Groups = require('./groups');
|
||||
Groups.get('administrators', {}, function (err, groupObj) {
|
||||
if (!err && groupObj && groupObj.memberCount > 0) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (groupObj && groupObj.memberCount > 0) {
|
||||
winston.info('Administrator found, skipping Admin setup');
|
||||
next();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user