mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
administrators group no longer shows up in group searches
This commit is contained in:
@@ -926,7 +926,7 @@ var async = require('async'),
|
||||
async.apply(db.getObjectValues, 'groupslug:groupname'),
|
||||
function(groupNames, next) {
|
||||
groupNames = groupNames.filter(function(name) {
|
||||
return name.match(new RegExp(query, 'i'));
|
||||
return name.match(new RegExp(query, 'i')) && name !== 'administrators';
|
||||
});
|
||||
|
||||
async.mapLimit(groupNames, 5, function(groupName, next) {
|
||||
|
||||
Reference in New Issue
Block a user