[PR #8887] [MERGED] Add permissions for collection management #11713

Closed
opened 2025-12-22 08:54:29 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/8887
Author: @Shadowghost
Created: 12/10/2022
Status: Merged
Merged: 2/14/2023
Merged by: @Bond-009

Base: masterHead: collections-permissions


📝 Commits (1)

  • b7418d6 Add permission for collection management

📊 Changes

11 files changed (+28 additions, -7 deletions)

View changed files

📝 Jellyfin.Api/Auth/UserPermissionPolicy/UserPermissionHandler.cs (+1 -2)
📝 Jellyfin.Api/Auth/UserPermissionPolicy/UserPermissionRequirement.cs (+1 -1)
📝 Jellyfin.Api/Constants/Policies.cs (+5 -0)
📝 Jellyfin.Api/Controllers/CollectionController.cs (+2 -1)
📝 Jellyfin.Data/Entities/User.cs (+1 -0)
📝 Jellyfin.Data/Enums/PermissionKind.cs (+6 -1)
📝 Jellyfin.Server.Implementations/Users/UserManager.cs (+2 -0)
📝 Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs (+1 -1)
📝 Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs (+1 -0)
📝 MediaBrowser.Controller/Entities/Movies/BoxSet.cs (+1 -1)
📝 MediaBrowser.Model/Users/UserPolicy.cs (+7 -0)

📄 Description

Changes

  • Adds a permission to manage collections (add, remove and delete)
  • Enforce permission on the collection endpoints

Will require changes to jellyfin-web (https://github.com/jellyfin/jellyfin-web/pull/4199) to take the new permission into account when displaying the elements in the item dropdown and collection screens. Additionally requires a setting in jellyfin-web to be available to set it.

Issues
Fixes #7179


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/8887 **Author:** [@Shadowghost](https://github.com/Shadowghost) **Created:** 12/10/2022 **Status:** ✅ Merged **Merged:** 2/14/2023 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `collections-permissions` --- ### 📝 Commits (1) - [`b7418d6`](https://github.com/jellyfin/jellyfin/commit/b7418d6e9e08af44edfc30971cd7b1b7871554c7) Add permission for collection management ### 📊 Changes **11 files changed** (+28 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Auth/UserPermissionPolicy/UserPermissionHandler.cs` (+1 -2) 📝 `Jellyfin.Api/Auth/UserPermissionPolicy/UserPermissionRequirement.cs` (+1 -1) 📝 `Jellyfin.Api/Constants/Policies.cs` (+5 -0) 📝 `Jellyfin.Api/Controllers/CollectionController.cs` (+2 -1) 📝 `Jellyfin.Data/Entities/User.cs` (+1 -0) 📝 `Jellyfin.Data/Enums/PermissionKind.cs` (+6 -1) 📝 `Jellyfin.Server.Implementations/Users/UserManager.cs` (+2 -0) 📝 `Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs` (+1 -1) 📝 `Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs` (+1 -0) 📝 `MediaBrowser.Controller/Entities/Movies/BoxSet.cs` (+1 -1) 📝 `MediaBrowser.Model/Users/UserPolicy.cs` (+7 -0) </details> ### 📄 Description **Changes** * Adds a permission to manage collections (add, remove and delete) * Enforce permission on the collection endpoints Will require changes to jellyfin-web (https://github.com/jellyfin/jellyfin-web/pull/4199) to take the new permission into account when displaying the elements in the item dropdown and collection screens. Additionally requires a setting in jellyfin-web to be available to set it. **Issues** Fixes #7179 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 08:54:29 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#11713
No description provided.