mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	interim commit for moderator support
This commit is contained in:
		| @@ -505,6 +505,12 @@ var config = require('../config.js'), | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	User.isModerator = function(uid, cid, callback) { | ||||
| 		RDB.sismember(uid, 'cid:' + cid + ':moderators', function(err, exists) { | ||||
| 			callback(exists); | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	User.reset = { | ||||
| 		validate: function(socket, code, callback) { | ||||
| 			if (typeof callback !== 'function') callback = undefined; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user