The Free Software Media System - Server Backend & API
Add authorization attribute
David87f3326ffbc2
diff --git a/Jellyfin.Api/Controllers/GenresController.cs b/Jellyfin.Api/Controllers/GenresController.csindex 9b15bdb771..2cd3de76ef 100644--- a/Jellyfin.Api/Controllers/GenresController.cs+++ b/Jellyfin.Api/Controllers/GenresController.cs@@ -1,6 +1,7 @@using System;using System.Globalization;using System.Linq;+using Jellyfin.Api.Constants;using Jellyfin.Api.Extensions;using Jellyfin.Api.Helpers;using Jellyfin.Data.Entities;@@ -18,6 +19,7 @@ namespace Jellyfin.Api.Controllers/// <summary>/// The genres controller./// </summary>+ [Authorize(Policy = Policies.DefaultAuthorization)]public class GenresController : BaseJellyfinApiController{private readonly IUserManager _userManager;