From d659b9b9abd156ca1202eddb491a2c024cd9544d Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Sat, 12 Mar 2022 15:47:30 +0100 Subject: [PATCH] Restrict item refreshing to administrators --- Jellyfin.Api/Controllers/ItemRefreshController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Api/Controllers/ItemRefreshController.cs b/Jellyfin.Api/Controllers/ItemRefreshController.cs index 3dea1924e2..9340737b50 100644 --- a/Jellyfin.Api/Controllers/ItemRefreshController.cs +++ b/Jellyfin.Api/Controllers/ItemRefreshController.cs @@ -15,7 +15,7 @@ namespace Jellyfin.Api.Controllers /// Item Refresh Controller. /// [Route("Items")] - [Authorize(Policy = Policies.DefaultAuthorization)] + [Authorize(Policy = Policies.RequiresElevation)] public class ItemRefreshController : BaseJellyfinApiController { private readonly ILibraryManager _libraryManager;