aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/CollectionController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-02-14 09:43:21 +0100
committerGitHub <noreply@github.com>2023-02-14 09:43:21 +0100
commit48c646194521b13165053bd4b9bb13733af42d29 (patch)
tree83fe4d4557b627693405d18d3c3af0f442013d00 /Jellyfin.Api/Controllers/CollectionController.cs
parent228fa2f1bf06d011b90d964b879a9dd29720684d (diff)
parentb7418d6e9e08af44edfc30971cd7b1b7871554c7 (diff)
Merge pull request #8887 from Shadowghost/collections-permissions
Diffstat (limited to 'Jellyfin.Api/Controllers/CollectionController.cs')
-rw-r--r--Jellyfin.Api/Controllers/CollectionController.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/CollectionController.cs b/Jellyfin.Api/Controllers/CollectionController.cs
index f9f9be7ce..2db04afb8 100644
--- a/Jellyfin.Api/Controllers/CollectionController.cs
+++ b/Jellyfin.Api/Controllers/CollectionController.cs
@@ -1,6 +1,7 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
+using Jellyfin.Api.Constants;
using Jellyfin.Api.Extensions;
using Jellyfin.Api.ModelBinders;
using MediaBrowser.Controller.Collections;
@@ -16,7 +17,7 @@ namespace Jellyfin.Api.Controllers;
/// The collection controller.
/// </summary>
[Route("Collections")]
-[Authorize]
+[Authorize(Policy = Policies.CollectionManagement)]
public class CollectionController : BaseJellyfinApiController
{
private readonly ICollectionManager _collectionManager;