aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels van Velzen <git@ndat.nl>2022-03-12 15:47:30 +0100
committerNiels van Velzen <git@ndat.nl>2022-03-12 15:47:30 +0100
commitd659b9b9abd156ca1202eddb491a2c024cd9544d (patch)
tree67e622f5f67ada80878690d8fec11f442a8b6e5a
parent6bb50d572840d4e585a36ba1dc0c338666f54906 (diff)
Restrict item refreshing to administrators
-rw-r--r--Jellyfin.Api/Controllers/ItemRefreshController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ItemRefreshController.cs b/Jellyfin.Api/Controllers/ItemRefreshController.cs
index 3dea1924e..9340737b5 100644
--- a/Jellyfin.Api/Controllers/ItemRefreshController.cs
+++ b/Jellyfin.Api/Controllers/ItemRefreshController.cs
@@ -15,7 +15,7 @@ namespace Jellyfin.Api.Controllers
/// Item Refresh Controller.
/// </summary>
[Route("Items")]
- [Authorize(Policy = Policies.DefaultAuthorization)]
+ [Authorize(Policy = Policies.RequiresElevation)]
public class ItemRefreshController : BaseJellyfinApiController
{
private readonly ILibraryManager _libraryManager;