mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +01:00 
			
		
		
		
	closes #1028
This commit is contained in:
		| @@ -176,7 +176,7 @@ var db = require('./database'), | |||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
| 	Categories.getModerators = function(cid, callback) { | 	Categories.getModerators = function(cid, callback) { | ||||||
| 		Groups.getByGroupName('cid:' + cid + ':privileges:mod', {}, function(err, groupObj) { | 		Groups.getByGroupName('cid:' + cid + ':privileges:mods', {}, function(err, groupObj) { | ||||||
| 			if (!err) { | 			if (!err) { | ||||||
| 				if (groupObj.members && groupObj.members.length) { | 				if (groupObj.members && groupObj.members.length) { | ||||||
| 					user.getMultipleUserFields(groupObj.members, ['uid', 'username', 'userslug', 'picture'], function(err, moderators) { | 					user.getMultipleUserFields(groupObj.members, ['uid', 'username', 'userslug', 'picture'], function(err, moderators) { | ||||||
|   | |||||||
| @@ -215,6 +215,7 @@ SocketAdmin.categories.getPrivilegeSettings = function(socket, cid, callback) { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| SocketAdmin.categories.setGroupPrivilege = function(socket, data, callback) { | SocketAdmin.categories.setGroupPrivilege = function(socket, data, callback) { | ||||||
|  |  | ||||||
| 	if(!data) { | 	if(!data) { | ||||||
| 		return callback(new Error('invalid data')); | 		return callback(new Error('invalid data')); | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user