mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
allow admin users to get Splashscreen even when disabled (#13825)
refactor
This commit is contained in:
parent
767ee2b5c4
commit
9c7cf808aa
@ -1727,7 +1727,8 @@ public class ImageController : BaseJellyfinApiController
|
|||||||
[FromQuery, Range(0, 100)] int quality = 90)
|
[FromQuery, Range(0, 100)] int quality = 90)
|
||||||
{
|
{
|
||||||
var brandingOptions = _serverConfigurationManager.GetConfiguration<BrandingOptions>("branding");
|
var brandingOptions = _serverConfigurationManager.GetConfiguration<BrandingOptions>("branding");
|
||||||
if (!brandingOptions.SplashscreenEnabled)
|
var isAdmin = User.IsInRole(Constants.UserRoles.Administrator);
|
||||||
|
if (!brandingOptions.SplashscreenEnabled && !isAdmin)
|
||||||
{
|
{
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user