Przeglądaj źródła

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

refactor
KGT1 2 miesięcy temu
rodzic
commit
9c7cf808aa
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      Jellyfin.Api/Controllers/ImageController.cs

+ 2 - 1
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();
         }