Skip to content

Commit 2503fc7

Browse files
committed
Show non writable folders during move or copy
Signed-off-by: Louis Chemineau <[email protected]>
1 parent ad73418 commit 2503fc7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/files/src/actions/moveOrCopyAction.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,8 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', nodes:
182182
const filePicker = getFilePickerBuilder(t('files', 'Choose destination'))
183183
.allowDirectories(true)
184184
.setFilter((n: Node) => {
185-
// We only want to show folders that we can create nodes in
186-
return (n.permissions & Permission.CREATE) !== 0
187-
// We don't want to show the current nodes in the file picker
188-
&& !fileIDs.includes(n.fileid)
185+
// We don't want to show the current nodes in the file picker
186+
return !fileIDs.includes(n.fileid)
189187
})
190188
.setMimeTypeFilter([])
191189
.setMultiSelect(false)

0 commit comments

Comments
 (0)