Merge pull request #7569 from crobibero/repo-auth

(cherry picked from commit a7abdca47a)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
pull/7345/head
Joshua M. Boniface 3 years ago committed by Joshua Boniface
parent 435fc7ade9
commit a277318e80

@ -155,7 +155,7 @@ namespace Jellyfin.Api.Controllers
/// <response code="204">Package repositories saved.</response>
/// <returns>A <see cref="NoContentResult"/>.</returns>
[HttpPost("Repositories")]
[Authorize(Policy = Policies.DefaultAuthorization)]
[Authorize(Policy = Policies.RequiresElevation)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public ActionResult SetRepositories([FromBody, Required] List<RepositoryInfo> repositoryInfos)
{

Loading…
Cancel
Save