mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
some checks to make last admin isnt removed
This commit is contained in:
@@ -150,6 +150,10 @@
|
||||
db.isSetMember('group:' + groupName + ':members', uid, callback);
|
||||
};
|
||||
|
||||
Groups.getMemberCount = function(groupName, callback) {
|
||||
db.setCount('group:' + groupName + ':members', callback);
|
||||
};
|
||||
|
||||
Groups.isMemberOfGroupList = function(uid, groupListKey, callback) {
|
||||
db.getSetMembers('group:' + groupListKey + ':members', function(err, groupNames) {
|
||||
groupNames = internals.removeEphemeralGroups(groupNames);
|
||||
|
||||
Reference in New Issue
Block a user