diff options
| author | mbastian77 <michael.bastian@visop.de> | 2026-07-18 14:07:52 +0200 |
|---|---|---|
| committer | mbastian77 <michael.bastian@visop.de> | 2026-07-18 14:07:52 +0200 |
| commit | 5a9fb802395d7c8f919a73aca84fea5ae3d79aee (patch) | |
| tree | c27274e818d4fdb141ce5d4eee93132beb20cc88 /MediaBrowser.Controller | |
| parent | dd0b273b2604af0016bd0e135a5276f2d56d39dd (diff) | |
Exempt people from the allowed tags visibility check
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Person.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Person.cs b/MediaBrowser.Controller/Entities/Person.cs index 5cc4d322f7..14325d971a 100644 --- a/MediaBrowser.Controller/Entities/Person.cs +++ b/MediaBrowser.Controller/Entities/Person.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Text.Json.Serialization; +using Jellyfin.Database.Implementations.Entities; using Jellyfin.Extensions; using MediaBrowser.Controller.Providers; using Microsoft.Extensions.Logging; @@ -75,6 +76,16 @@ namespace MediaBrowser.Controller.Entities return false; } + /// <inheritdoc /> + /// <remarks> + /// People don't carry the tags of the media they appear in, so the allowed tags check + /// is skipped for them; otherwise no person would be visible to users with allowed tags configured. + /// </remarks> + public override bool IsVisible(User user, bool skipAllowedTagsCheck = false) + { + return base.IsVisible(user, true); + } + public override bool IsSaveLocalMetadataEnabled() { return true; |
