From: Jaroslav Kysela Date: Mon, 16 May 2016 18:38:53 +0000 (+0200) Subject: htsp server: fix the missing EPG events for restricted users in tvhclient (android... X-Git-Tag: v4.2.1~501 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a2958afe345e9d87906044b414a8116ef6f6c46;p=thirdparty%2Ftvheadend.git htsp server: fix the missing EPG events for restricted users in tvhclient (android), fixes #3808 --- diff --git a/src/htsp_server.c b/src/htsp_server.c index a0d101de3..0e928f96a 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1563,6 +1563,8 @@ htsp_method_getEvents(htsp_connection_t *htsp, htsmsg_t *in) /* Use event as starting point */ if (e || ch) { + if (e && !ch) ch = e->channel; + if (!htsp_user_access_channel(htsp, ch)) return htsp_error(htsp, N_("User does not have access"));