Restrict item refreshing to administrators

This commit is contained in:
Niels van Velzen 2022-03-12 15:47:30 +01:00
parent 6bb50d5728
commit d659b9b9ab

View File

@ -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;