Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Collections from 'Allow Deletion From' Setting #6361

Open
JPKribs opened this issue Dec 3, 2024 · 0 comments
Open

Hide Collections from 'Allow Deletion From' Setting #6361

JPKribs opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JPKribs
Copy link
Member

JPKribs commented Dec 3, 2024

Describe The Bug
Permission to enable collection deletion is handled by the isAdministrator flag. Adding Collections to a user doesn't grant the ability to delete and removing it doesn't restrict access. Only Admins can delete collections.

Steps To Reproduce

  1. Create/use a non-admin

  2. Grant 'Allow Media Deletion From' Collections

  3. This user still cannot delete Collections

  4. Create/use a admin

  5. Revoke 'Allow Media Deletion From' Collections

  6. This user still delete Collections

Expected Behavior
The behavior makes sense since Collections aren't 'real' files. It makes sense deleting these is an Admin function but we should just probably hide Collections from the 'Allow Media Deletion From' since it doesn't do anything if it's enabled/disabled.

System (please complete the following information):

  • Platform: Debian - Docker
  • Browser: Firefox, Chrome, & Safari
  • Jellyfin Version: 10.10.3

Additional Context
Entirely just cosmetic. I just found this interaction when I was doing jellyfin/Swiftfin#1333. I need to filter Collections from my list too but I wanted to try and make it consistent between platforms.

@JPKribs JPKribs added the bug Something isn't working label Dec 3, 2024
JPKribs added a commit to JPKribs/Swiftfin that referenced this issue Dec 6, 2024
LePips added a commit to jellyfin/Swiftfin that referenced this issue Dec 6, 2024
…#1336)

* Cleanup / Genre & Tag Management

* Move searching to a backgroundState. Fix the font Color when bulk editing tags / genres should be secondary when editing & not selected

* Cleanup

* Now that cancelling is handled better this should prevent the issue where the suggestions fails to update on a letter entry

* Change from using an event for searchResults to using a published searchResults var

* Moved all logic to a local list where all genres/tags are populated on refresh then filterd locally instead of calling the server for changes.

* Inheritance

* Split metadata from components then alphabetize. Also, fix but where you can't add a people

* People & Permissions

* Functional but dirty. TODO: Cleanup + Trie? Trei?

* nil coalescing operator is only evaluated if the lhs is nil, coalescing operator with nil as rhs is redundant

* TODO: Search improvements & Delay search on name change

* Cleanup & reordering

* Debouncing

* Trie implementation

* Permissions Cleanup Squeezing in: jellyfin/jellyfin-web#6361

* enhance Trie

* cleanup

* cleanup

---------

Co-authored-by: Ethan Pippin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant