mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
@barisusakli works perfectly
This commit is contained in:
@@ -113,12 +113,18 @@ Categories.setGroupPrivilege = function(socket, data, callback) {
|
||||
Categories.groupsList = function(socket, cid, callback) {
|
||||
groups.list({
|
||||
expand: false,
|
||||
isAdmin: true,
|
||||
showSystemGroups: true
|
||||
}, function(err, data) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
// Remove privilege groups
|
||||
data = data.filter(function(groupObj) {
|
||||
return groupObj.name.indexOf(':privileges:') === -1;
|
||||
});
|
||||
|
||||
async.map(data, function(groupObj, next) {
|
||||
privileges.categories.groupPrivileges(cid, groupObj.name, function(err, privileges) {
|
||||
if(err) {
|
||||
|
||||
Reference in New Issue
Block a user