allow admin users to get Splashscreen even when disabled (#13825)

refactor
This commit is contained in:
KGT1
2025-04-03 00:32:53 +02:00
committed by GitHub
parent 767ee2b5c4
commit 9c7cf808aa

View File

@@ -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();
}