mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
isMemberOfGroups fix
This commit is contained in:
@@ -151,6 +151,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
Groups.isMemberOfGroups = function(uid, groups, callback) {
|
Groups.isMemberOfGroups = function(uid, groups, callback) {
|
||||||
|
groups = groups.map(function(groupName) {
|
||||||
|
return 'group:' + groupName + ':members';
|
||||||
|
});
|
||||||
db.isMemberOfSets(groups, uid, callback);
|
db.isMemberOfSets(groups, uid, callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user