Fix authentication attribute

This commit is contained in:
crobibero 2020-05-19 09:24:04 -06:00
parent 98bd61e364
commit 839de72f9a

View File

@ -7,10 +7,10 @@ using System.Linq;
using MediaBrowser.Controller; using MediaBrowser.Controller;
using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Net;
using MediaBrowser.Model.Dto; using MediaBrowser.Model.Dto;
using MediaBrowser.Model.IO; using MediaBrowser.Model.IO;
using MediaBrowser.Model.Net; using MediaBrowser.Model.Net;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
@ -20,7 +20,7 @@ namespace Jellyfin.Api.Controllers.Images
/// Images By Name Controller. /// Images By Name Controller.
/// </summary> /// </summary>
[Route("Images")] [Route("Images")]
[Authenticated] [Authorize]
public class ImageByNameController : BaseJellyfinApiController public class ImageByNameController : BaseJellyfinApiController
{ {
private readonly IServerApplicationPaths _applicationPaths; private readonly IServerApplicationPaths _applicationPaths;