Project

General

Profile

SOLVED: Can't limit or exclude channels to user by channel tag

Added by Tony Wagner over 3 years ago

NOTE: As suggested in the replies, this was solved by checking "Channel tags" under "Change parameters" for the user in question.

I'm not able to limit or exclude access to channels for users based on tags.

Here's the settings where I created the tag:

And here's the settings where I added the tag to a channel:

And finally, here's the settings where I tried limiting a user to that tag:

But when I do that, that user still sees all of the channels everywhere I can check -- in the web interface, via the API, in Kodi, in apps like Bower Bird, etc.

I've also tried the reverse -- excluding the channel tag in the user settings, specifically following the order of operations recommended in this post -- but the "excluded" channel still remains for them. I've also tried marking the tag as "Internal" and/or "Private" but nothing changed. I've verified all the settings repeatedly, both by the GUI and the API. I've deleted the user, the tag assignments, and the tags, and then re-created them all. But I have yet to successfully limit or exclude access to any channels.

Is there some setting I am missing here?

I am running TVHeadend version 4.3-1940~gfe0e5f1f9 on a Raspberry Pi 4 (Buster armv7l). This was the latest Pi ARM7 .deb build provided by Mark Gladstone on this forum. It has been working great otherwise for the past year, but I've been the only user up until now so I haven't tried this use of channel tags before. Not sure that it matters, but I primarily use TVH with a HDHomerun for ATSC 1.0 OTA channels, plus a FM/HD radio tuner and a few public IPTV streams through a "pipe:///" command.

NOTE: As suggested in the replies, this was solved by checking "Channel tags" under "Change parameters" for the user in question.


Replies (2)

RE: Can't limit or exclude channels to user by channel tag - Added by Dave Pickles over 3 years ago

Under "Change parameters" tick "Channel tags" (and any other items which are different from the "*" user if you have one) and untick "Rights".

The user privilege system is very complex, and the documentation is wrong (I've submitted a PR). The "Change parameters" drop-down determines which of the other items are to be used to configure the user - it's like a circuit-breaker on the other items. Here's my proposed text:

The Change parameters flag allows you to control which parameters
(permission flags, all types of profiles, channel tags and ranges) are
combined when multiple entries match a username/login. When the
change parameter flag is enabled (checked) for a parameter, the setting
for this user overrides any previous entry (though it can in turn be
overridden by a later entry). The exception is the Rights option
where the permissions for all matching users having the change parameter
flag set are added together.

RE: Can't limit or exclude channels to user by channel tag - Added by Tony Wagner over 3 years ago

Dave Pickles wrote:

Under "Change parameters" tick "Channel tags" (and any other items which are different from the "*" user if you have one) and untick "Rights".

Dave, thank you! Adding "Channel tags" to "Change parameters" indeed fixed it.

I still needed "Rights" checked in order to sign in with Kodi. I also need "Rights" plus the "Web interface" checkbox in order to sign in with the TvhClient app or Bower Bird app on iOS, since they are apparently using the API for access.

    (1-2/2)