mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
filter priv/registered-users/guests in groups.list
This commit is contained in:
@@ -389,9 +389,10 @@ adminController.groups.get = function(req, res, next) {
|
||||
isAdmin: true,
|
||||
showSystemGroups: true
|
||||
}, function(err, groups) {
|
||||
groups = groups.filter(function(group) {
|
||||
return group.name !== 'registered-users' && group.name !== 'guests' && group.name.indexOf(':privileges:') === -1;
|
||||
});
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
res.render('admin/manage/groups', {
|
||||
groups: groups,
|
||||
yourid: req.user.uid
|
||||
|
||||
Reference in New Issue
Block a user