Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/files/src/actions/moveOrCopyAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
* @param action The action to open the file picker for
* @param dir The directory to start the file picker in
* @param nodes The nodes to move/copy
* @return The picked destination or false if cancelled by user

Check warning on line 210 in apps/files/src/actions/moveOrCopyAction.ts

View workflow job for this annotation

GitHub Actions / NPM lint

Missing JSDoc @return type
*/
async function openFilePickerForAction(
action: MoveCopyAction,
Expand All @@ -222,6 +222,7 @@
// We don't want to show the current nodes in the file picker
return !fileIDs.includes(n.fileid)
})
.setFilter((n: Node) => (n.permissions & Permission.CREATE) === Permission.CREATE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this does not work. Because you can have readonly root directories with external mounts that allow writing / groupfolder ACL.

So we should not filter directories without create permission as this also blocks navigating to perfectly valid ones.

I think we should filter for folder here to implement #50199
And then we need to disable the select button if CREATE is missing, but not hide the folder completely.

.setMimeTypeFilter([])
.setMultiSelect(false)
.startAt(dir)
Expand Down
Loading