From: Jaroslav Kysela Date: Mon, 11 Apr 2016 08:13:54 +0000 (+0200) Subject: channel: allow access to removed channels for users with full rights X-Git-Tag: v4.2.1~683 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17be93d3becf2d6def9eff570d67857db546a94f;p=thirdparty%2Ftvheadend.git channel: allow access to removed channels for users with full rights --- diff --git a/src/channels.c b/src/channels.c index 972464b4c..1e475ec58 100644 --- a/src/channels.c +++ b/src/channels.c @@ -596,9 +596,16 @@ channel_access(channel_t *ch, access_t *a, int disabled) { char ubuf[UUID_HEX_SIZE]; - if (!ch || !a) + if (!a) return 0; + if (!ch) { + /* If user has full rights, allow access to removed chanels */ + if (a->aa_chrange == NULL && a->aa_chtags == NULL) + return 1; + return 0; + } + if (!disabled && !ch->ch_enabled) return 0;