diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-18 08:27:42 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-07-18 20:15:39 +0200 |
commit | 2c9440496958874ff79db2e1d1b11f6a29f45a73 (patch) | |
tree | 50c6b0564a791e48ef4b5843f00180a74d0199e4 | |
parent | 7878f1ceeab6d5d3f08cb3130ad435366e1830ac (diff) | |
download | nextcloud-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.vue | 5 |
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 |