mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
truncating user list in Groups ACP page, resolved #1132. Refactored system groups handling
This commit is contained in:
@@ -266,20 +266,14 @@ SocketAdmin.categories.setGroupPrivilege = function(socket, data, callback) {
|
||||
};
|
||||
|
||||
SocketAdmin.categories.groupsList = function(socket, cid, callback) {
|
||||
async.parallel({
|
||||
groups: function(next) {
|
||||
groups.list({expand:false}, next);
|
||||
},
|
||||
system: function(next) {
|
||||
groups.listSystemGroups({expand: false}, next);
|
||||
}
|
||||
}, function(err, results) {
|
||||
groups.list({
|
||||
expand: false,
|
||||
showSystemGroups: true
|
||||
}, function(err, data) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
var data = results.groups.concat(results.system);
|
||||
|
||||
async.map(data, function(groupObj, next) {
|
||||
CategoryTools.groupPrivileges(cid, groupObj.gid, function(err, privileges) {
|
||||
if(err) {
|
||||
|
||||
Reference in New Issue
Block a user