mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	breaking: remove socket.emit('user.search')
This commit is contained in:
		@@ -312,6 +312,9 @@ async function canDeleteUids(uids) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
usersAPI.search = async function (caller, data) {
 | 
			
		||||
	if (!data) {
 | 
			
		||||
		throw new Error('[[error:invalid-data]]');
 | 
			
		||||
	}
 | 
			
		||||
	const [allowed, isPrivileged] = await Promise.all([
 | 
			
		||||
		privileges.global.can('search:users', caller.uid),
 | 
			
		||||
		user.isPrivileged(caller.uid),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user