mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
closes #5706
This commit is contained in:
@@ -120,7 +120,7 @@ Categories.getCategoriesByPrivilege = function (set, uid, privilege, callback) {
|
||||
Categories.getModerators = function (cid, callback) {
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
Groups.getMembers('cid:' + cid + ':privileges:mods', 0, -1, next);
|
||||
Groups.getMembers('cid:' + cid + ':privileges:moderate', 0, -1, next);
|
||||
},
|
||||
function (uids, next) {
|
||||
if (!Array.isArray(uids) || !uids.length) {
|
||||
|
||||
Reference in New Issue
Block a user