issue #961 - fixed bug where if a moderators group was not found, it would cause the active users box to derp out. Also renamed the moderators priv group name

This commit is contained in:
Julian Lam
2014-02-07 12:10:46 -05:00
parent e176abae50
commit f8ea87b003
2 changed files with 4 additions and 3 deletions

View File

@@ -753,7 +753,7 @@ var bcrypt = require('bcryptjs'),
};
User.isModerator = function(uid, cid, callback) {
groups.isMemberByGroupName(uid, 'cid:' + cid + ':moderators', function(err, isMember) {
groups.isMemberByGroupName(uid, 'cid:' + cid + ':privileges:mod', function(err, isMember) {
if(err) {
return calback(err);
}