mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 08:37:19 +01:00
Add backend check for ws message ownership
This commit is contained in:
parent
9291c98189
commit
3b666fef77
2 changed files with 13 additions and 2 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue