fix(files_sharing): also allow removing READ permissions on email shares

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
skjnldsv 2024-07-18 08:27:42 +02:00 committed by nextcloud-command
parent 441855c69c
commit eb3eec5a9d
3 changed files with 7 additions and 4 deletions

View file

@ -545,7 +545,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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long