mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -132,14 +132,14 @@ function start() { | ||||
|                             if (anonymousUser) { | ||||
|                                 log.audit({event: "comms.auth",user:anonymousUser}); | ||||
|                                 completeConnection(anonymousUser.permissions,false); | ||||
|                                 //TODO: duplicated code - pull non-auth message handling out | ||||
|                                 if (msg.subscribe) { | ||||
|                                     handleRemoteSubscription(ws,msg.subscribe); | ||||
|                                 } | ||||
|                             } else { | ||||
|                                 log.audit({event: "comms.auth.fail"}); | ||||
|                                 completeConnection(null,false); | ||||
|                             } | ||||
|                             //TODO: duplicated code - pull non-auth message handling out | ||||
|                             if (msg.subscribe) { | ||||
|                                 handleRemoteSubscription(ws,msg.subscribe); | ||||
|                             } | ||||
|                         } | ||||
|                     } | ||||
|                 }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user