mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	anon checks
less db calls for uid 0
This commit is contained in:
		| @@ -38,12 +38,7 @@ module.exports = function(privileges) { | ||||
| 					posts.isOwner(pids, uid, next); | ||||
| 				}, | ||||
| 				isModerator: function(next) { | ||||
| 					posts.getCidsByPids(pids, function(err, cids) { | ||||
| 						if (err) { | ||||
| 							return next(err); | ||||
| 						} | ||||
| 						user.isModerator(uid, cids, next); | ||||
| 					}); | ||||
| 					posts.isModerator(pids, uid, next); | ||||
| 				} | ||||
| 			}, function(err, postResults) { | ||||
| 				if (err) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user