aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ImageController.cs
diff options
context:
space:
mode:
authorKGT1 <kilian.gamn@gmx.de>2025-04-03 00:32:53 +0200
committerGitHub <noreply@github.com>2025-04-02 16:32:53 -0600
commit9c7cf808aa10b44677f641caccc3b8f409a419fd (patch)
tree96951cbc7c5ece778ebf775b4b89560c7891f8b0 /Jellyfin.Api/Controllers/ImageController.cs
parent767ee2b5c41ddcceba869981b34d3f59d684bc00 (diff)
allow admin users to get Splashscreen even when disabled (#13825)
refactor
Diffstat (limited to 'Jellyfin.Api/Controllers/ImageController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ImageController.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.cs
index e7b7405ca..abda053d3 100644
--- a/Jellyfin.Api/Controllers/ImageController.cs
+++ b/Jellyfin.Api/Controllers/ImageController.cs
@@ -1727,7 +1727,8 @@ public class ImageController : BaseJellyfinApiController
[FromQuery, Range(0, 100)] int quality = 90)
{
var brandingOptions = _serverConfigurationManager.GetConfiguration<BrandingOptions>("branding");
- if (!brandingOptions.SplashscreenEnabled)
+ var isAdmin = User.IsInRole(Constants.UserRoles.Administrator);
+ if (!brandingOptions.SplashscreenEnabled && !isAdmin)
{
return NotFound();
}