aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2022-11-13 12:19:16 +0100
committerGitHub <noreply@github.com>2022-11-13 12:19:16 +0100
commit1b7500c5557996e2ab91377e5783a3802f9029a9 (patch)
tree8f849b6c852e182ba61411e8cf3ae66ca30ca271 /Jellyfin.Api/Controllers/LibraryController.cs
parenta9e2acc9e45525a9d5b7ba39f0e68f2d00e5c8c4 (diff)
parentc6dbcb661bec6fc02347cd0bdce2e5e6e4ee0dbe (diff)
Merge pull request #8732 from thornbill/fix-items-access
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index e9492a6a4..7a57bf1a2 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -485,7 +485,7 @@ namespace Jellyfin.Api.Controllers
/// <response code="200">Media folders returned.</response>
/// <returns>List of user media folders.</returns>
[HttpGet("Library/MediaFolders")]
- [Authorize(Policy = Policies.DefaultAuthorization)]
+ [Authorize(Policy = Policies.RequiresElevation)]
[ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<QueryResult<BaseItemDto>> GetMediaFolders([FromQuery] bool? isHidden)
{