From d851443ea7109c565681640029e7c5a6efa12a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 15 Feb 2016 22:46:00 +0200 Subject: [PATCH] closes #4187 --- public/src/client/groups/list.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/src/client/groups/list.js b/public/src/client/groups/list.js index c02b9904eb..4293d0de69 100644 --- a/public/src/client/groups/list.js +++ b/public/src/client/groups/list.js @@ -80,6 +80,12 @@ define('forum/groups/list', ['forum/infinitescroll'], function(infinitescroll) { filterHidden: true } }, function(err, groups) { + if (err) { + return app.alertError(err.message); + } + groups = groups.filter(function(group) { + return group.name !== 'registered-users' && group.name !== 'guests'; + }); templates.parse('partials/groups/list', { groups: groups }, function(html) {