Skip to content

Commit

Permalink
Disable share renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Oct 25, 2022
1 parent ab3ac71 commit 0597753
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/enhancement-disable-share-renaming
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Disable share renaming

Renaming of shares has been disabled temporarily until it works as expected.

https://github.com/owncloud/web/pull/7865
6 changes: 2 additions & 4 deletions packages/web-app-files/src/mixins/actions/rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ export default {
if (isLocationTrashActive(this.$router, 'files-trash-generic')) {
return false
}
if (
isLocationSharesActive(this.$router, 'files-shares-with-me') &&
this.capabilities?.files_sharing?.can_rename === false
) {
// FIXME: Also check for "can_rename" capability as soon as renaming shares works as expected
if (isLocationSharesActive(this.$router, 'files-shares-with-me')) {
return false
}
if (resources.length !== 1) {
Expand Down

0 comments on commit 0597753

Please sign in to comment.