mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Add backend check for ws message ownership
This commit is contained in:
		| @@ -146,7 +146,7 @@ export class ConsumerStatusService { | ||||
|     this.statusWebSocket.onmessage = (ev) => { | ||||
|       let statusMessage: WebsocketConsumerStatusMessage = JSON.parse(ev['data']) | ||||
|  | ||||
|       // tasks are async so we rely on checking user id | ||||
|       // fallback if backend didnt restrict message | ||||
|       if ( | ||||
|         statusMessage.owner_id && | ||||
|         statusMessage.owner_id !== this.settingsService.currentUser?.id && | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon