mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-11 11:42:10 +02:00
dont display hidden/system groups on /groups
This commit is contained in:
@@ -13,6 +13,11 @@ groupsController.list = function(req, res, next) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
groups = groups.filter(function(group) {
|
||||
return group && !group.hidden && !group.system;
|
||||
});
|
||||
|
||||
res.render('groups/list', {
|
||||
groups: groups,
|
||||
allowGroupCreation: parseInt(meta.config.allowGroupCreation, 10) === 1
|
||||
|
||||
Reference in New Issue
Block a user