Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions changelog/unreleased/bugfix-disable-rename-in-ppf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Bugfix: Disable rename action in password-protected folder view

We've fixed a bug where renaming a folder from inside a password-protected
folder view would create a duplicate folder instead of renaming the original.
The rename action is now hidden in public link contexts, which aligns with
the documented behavior that link files should not be manipulated from this view.

https://github.com/owncloud/web/issues/12365
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { isSameResource } from '../../../helpers/resource'
import { isLocationTrashActive, isLocationSharesActive } from '../../../router'
import {
isLocationTrashActive,
isLocationSharesActive,
isLocationPublicActive
} from '../../../router'
import { Resource } from '@ownclouders/web-client'
import { dirname, join } from 'path'
import { WebDAV } from '@ownclouders/web-client/webdav'
Expand Down Expand Up @@ -218,6 +222,10 @@ export const useFileActionsRename = () => {
if (isLocationTrashActive(router, 'files-trash-generic')) {
return false
}

if (isLocationPublicActive(router, 'files-public-link')) {
return false
}
if (
isLocationSharesActive(router, 'files-shares-with-me') &&
!capabilityStore.sharingCanRename
Expand Down