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 2addd48b2e
commit 7618bb6f49
8 changed files with 11 additions and 8 deletions

View file

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

3
dist/4234-4234.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/4234-4234.js.map vendored Normal file

File diff suppressed because one or more lines are too long

3
dist/7144-7144.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long