Skip to content

Commit ff8af85

Browse files
skjnldsvbackportbot[bot]
authored andcommitted
fix(files_sharing): also allow removing READ permissions on email shares
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 2addd48 commit ff8af85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,10 @@ export default {
567567
return (this.fileInfo.canDownload() || this.canDownload)
568568
},
569569
canRemoveReadPermission() {
570-
return this.allowsFileDrop && this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK
570+
return this.allowsFileDrop && (
571+
this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK
572+
|| this.share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL
573+
)
571574
},
572575
// if newPassword exists, but is empty, it means
573576
// the user deleted the original password

0 commit comments

Comments
 (0)