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

Allow editing multiple file permissions #850

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jelly
Copy link
Member

@jelly jelly commented Nov 29, 2024

Blocked:

As discussed on Thursday, for multiple file uploads we want to allow users to change multiple file(s) permissions to be changed. This has been implemented with the following restrictions:

  • Only multiple files can be edited, not block devices, fifo's, directories etc.
  • Don't show SELinux context as it makes no sense for multiple files
  • Don't allow changing of the owner/group if they don't match between files (so not to have inconsistency)

The title might need some UX but as of now it just concatenates multiple files in the title. This can be improved

image

This refactors the EditPermissionsModal with the goal to no longer
accept `FolderFileInfo | null` and moving the special current working
directory logic into `menu.tsx`.

With these changes we can simplify the permissions dialog and open up
support for editing multiple files. Coincidentally this adds a
workaround for a bug where `basename("/")` return "".
For our upload file(s) as administrator feature we want an easy way to
change permissions of multiple uploaded file(s). Editing multiple files
is restricted to regular files to not mix folder and file permissions
operations which might imply that all files under the folder change or
not.

Furthermore when the owner/group do not match it is not shown nor is the
SELinux context shown for the files as it is impossible to find a common
context.
@jelly jelly added the no-test label Nov 29, 2024
@jelly jelly requested a review from garrett November 29, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant