From daaf61bc68348bd0f027ef4d6b1e679fef318244 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 6 Mar 2015 12:02:07 -0500 Subject: [PATCH] fixed issue where accessing a category's access control caused a client-side error --- src/socket.io/admin/categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/admin/categories.js b/src/socket.io/admin/categories.js index 55d8300819..5659b8aca9 100644 --- a/src/socket.io/admin/categories.js +++ b/src/socket.io/admin/categories.js @@ -68,7 +68,7 @@ Categories.getPrivilegeSettings = function(socket, cid, callback) { async.reduce(privileges, [], function(members, privilege, next) { groups.get('cid:' + cid + ':privileges:' + privilege, { expand: true }, function(err, groupObj) { if (err || !groupObj) { - return next(err, members); + return next(null, members); } members = members.concat(groupObj.members);