diff --git a/src/user.js b/src/user.js index ff8f6fbb36..85c025ab63 100644 --- a/src/user.js +++ b/src/user.js @@ -441,7 +441,7 @@ var async = require('async'), if (Array.isArray(uid)) { async.parallel([ async.apply(groups.isMembers, uid, 'cid:' + cid + ':privileges:mods'), - async.apply(groups.isMembers, uid, 'cid:' + cid + ':privileges:groups:moderate') + async.apply(groups.isMembersOfGroupList, uid, 'cid:' + cid + ':privileges:groups:moderate') ], function(err, checks) { var isModerator = checks[0].map(function(isMember, idx) { return isMember || checks[1][idx]; @@ -451,7 +451,7 @@ var async = require('async'), } else { async.parallel([ async.apply(groups.isMember, uid, 'cid:' + cid + ':privileges:mods'), - async.apply(groups.isMember, uid, 'cid:' + cid + ':privileges:groups:moderate') + async.apply(groups.isMemberOfGroupList, uid, 'cid:' + cid + ':privileges:groups:moderate') ], function(err, checks) { var isModerator = checks[0] || checks[1]; filterIsModerator(null, isModerator);