Skip to content

Commit 7364202

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 441855c commit 7364202

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
@@ -545,7 +545,10 @@ export default {
545545
return (this.fileInfo.canDownload() || this.canDownload)
546546
},
547547
canRemoveReadPermission() {
548-
return this.allowsFileDrop && this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK
548+
return this.allowsFileDrop && (
549+
this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK
550+
|| this.share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL
551+
)
549552
},
550553
// if newPassword exists, but is empty, it means
551554
// the user deleted the original password

0 commit comments

Comments
 (0)