-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Bulk deletion only possible with "All libraries" permission deletion #6308
Comments
Should non-admin users be able to delete items at all? |
Yes, there's an explicit setting for that in the user settings. If that was turned off, the user could not delete single items. So this is not about whether deletion should be possible, it's about the bulk deletion (not possible) being inconsistent with single item deletion (possible). |
Can you confirm that you are using v10.10.1? I've tried out the steps you mentioned in your report. When I log in as a non-admin who has permission to delete media, I can select media and then I get the "delete" option. |
Thanks for trying to reproduce, Dan. I'm on 10.10.1, but my steps above seem incomplete as I couldn't reproduce them myself just now. I tested some more on the android app and I think I found two issues: Bulk delete option is only loaded at app start timeIf we change deletion permissions the bulk deletion option will be outdated:
Bulk deletion only appears on permission "All libraries"This means a user cannot bulk delete in a library it can delete from, unless it can delete from "All libraries". With all libraries being selected not being "All libraries" and not allowing bulk deletion.
|
I'll test it again shortly using your updated steps, but just thinking.... The Bulk Delete option in Collections can only appear when All Libraries permission is given, because media in a collection could potentially originate from multiple libraries, some of which the user may not have permission to delete from. |
Technically it could check if the user has permission to delete each item and then show up or don't, but maybe that's not feasible. If we're not gonna change that behavior, we could add an information to the deletion permission that unchecking "All libraries" will remove the bulk deletion option. Btw, I don't consider the "Bulk delete option is only loaded at app start time" issue very bad or important, since the permissions are rarely changing. However, depending on how this works internally maybe we could solve both at the same time (by making the check whether the option appears dynamic, but again, I don't know if that's feasible or proportional). |
Describe The Bug
A user that's not admin cannot select and then delete multiple items at once. The same user can delete the items separately via the items context menu though.
Steps To Reproduce
To verify the user can delete:
Expected Behavior
A "Delete" option to be there which deletes all selected items.
System (please complete the following information):
Additional Context
The text was updated successfully, but these errors were encountered: