aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-18 08:27:42 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-07-18 20:15:39 +0200
commit2c9440496958874ff79db2e1d1b11f6a29f45a73 (patch)
tree50c6b0564a791e48ef4b5843f00180a74d0199e4
parent7878f1ceeab6d5d3f08cb3130ad435366e1830ac (diff)
downloadnextcloud-server-2c9440496958874ff79db2e1d1b11f6a29f45a73.tar.gz
nextcloud-server-2c9440496958874ff79db2e1d1b11f6a29f45a73.zip
fix(files_sharing): also allow removing READ permissions on email shares
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r--apps/files_sharing/src/views/SharingDetailsTab.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue
index 023c137a254..a0cb71fc392 100644
--- a/apps/files_sharing/src/views/SharingDetailsTab.vue
+++ b/apps/files_sharing/src/views/SharingDetailsTab.vue
@@ -603,7 +603,10 @@ export default {
return (this.fileInfo.canDownload() || this.canDownload)
},
canRemoveReadPermission() {
- return this.allowsFileDrop && this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK
+ return this.allowsFileDrop && (
+ this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK
+ || this.share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL
+ )
},
// if newPassword exists, but is empty, it means
// the user deleted the original password