aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/GenresController.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-07-06 17:36:24 +0200
committerDavid <daullmer@gmail.com>2020-07-06 17:36:24 +0200
commit87f3326ffbc2dd807b663bac7551141bce9c35fe (patch)
treef944c306e876ef3debdedb0bdf5e3e86f76cfc84 /Jellyfin.Api/Controllers/GenresController.cs
parent94ccb3ee98b9b9f9988bd617086f848304c1e1da (diff)
Add authorization attribute
Diffstat (limited to 'Jellyfin.Api/Controllers/GenresController.cs')
-rw-r--r--Jellyfin.Api/Controllers/GenresController.cs2
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;