mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
privileges.posts.get takes an array of pids now
This commit is contained in:
@@ -150,6 +150,10 @@
|
||||
db.isSetMember('group:' + groupName + ':members', uid, callback);
|
||||
};
|
||||
|
||||
Groups.isMemberOfGroups = function(uid, groups, callback) {
|
||||
db.isMemberOfSets(groups, uid, callback);
|
||||
};
|
||||
|
||||
Groups.getMemberCount = function(groupName, callback) {
|
||||
db.setCount('group:' + groupName + ':members', callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user