]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
Fix non-admin users not receiving any updates in web UI
authorMichael Marley <michael@michaelmarley.com>
Sun, 24 Sep 2023 19:35:33 +0000 (15:35 -0400)
committerFlole998 <Flole998@users.noreply.github.com>
Sun, 1 Oct 2023 00:12:22 +0000 (02:12 +0200)
commit51adc040429c001820a44c6b26825c1bdc19c779
tree98047c96d199762eed787c0d8ad6a7a227fb5fa7
parentfe4df311d1209ba86d514a34abc0b9c694d53b5f
Fix non-admin users not receiving any updates in web UI

All the way back in 54e63e3f9af8fdc0d23f61f3cda7fa7b246c1732, there
was a fix to stop non-admin users from receiving log messages with
potentially-sensitive data.  However, this stopped non-admin webui
users from receiving almost any updates over the websocket
interface, which causes a bug where such users don't see newly-
created DVR entries, etc. until refreshing the page.  This patch
allows for more granular control over what non-admin users
receive.  Specifically, messages originating from subscriptions.c,
mpegts_input.c, and api_service.c, along with all log messages, are
still only sent to admins because they may contain sensitive data
and/or they are only relevant to administrative parts of the UI.
Other messages, such as idnode, DVR, and EPG-related messages, are
once again sent to all webui users to keep the UI up-to-date.
src/api/api_service.c
src/dvr/dvr_vfsmgr.c
src/idnode.c
src/input/mpegts/mpegts_input.c
src/notify.c
src/notify.h
src/subscriptions.c
src/webui/comet.c
src/webui/webui.h