From 87f3326ffbc2dd807b663bac7551141bce9c35fe Mon Sep 17 00:00:00 2001 From: David Date: Mon, 6 Jul 2020 17:36:24 +0200 Subject: Add authorization attribute --- Jellyfin.Api/Controllers/GenresController.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Jellyfin.Api/Controllers/GenresController.cs') diff --git a/Jellyfin.Api/Controllers/GenresController.cs b/Jellyfin.Api/Controllers/GenresController.cs index 9b15bdb77..2cd3de76e 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 /// /// The genres controller. /// + [Authorize(Policy = Policies.DefaultAuthorization)] public class GenresController : BaseJellyfinApiController { private readonly IUserManager _userManager; -- cgit v1.2.3