Require elevation to save the list of plugin repositories
This commit is contained in:
parent
5de2db9f52
commit
7a8eaa8811
|
@ -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…
Reference in New Issue
Block a user