diff options
| author | David <daullmer@gmail.com> | 2020-07-06 17:36:24 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-07-06 17:36:24 +0200 |
| commit | 87f3326ffbc2dd807b663bac7551141bce9c35fe (patch) | |
| tree | f944c306e876ef3debdedb0bdf5e3e86f76cfc84 | |
| parent | 94ccb3ee98b9b9f9988bd617086f848304c1e1da (diff) | |
Add authorization attribute
| -rw-r--r-- | Jellyfin.Api/Controllers/GenresController.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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 /// <summary> /// The genres controller. /// </summary> + [Authorize(Policy = Policies.DefaultAuthorization)] public class GenresController : BaseJellyfinApiController { private readonly IUserManager _userManager; |
