Prechádzať zdrojové kódy

Restrict item refreshing to administrators

Niels van Velzen 3 rokov pred
rodič
commit
d659b9b9ab

+ 1 - 1
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;