Skip to content

Commit 7618bb6

Browse files
skjnldsvnextcloud-command
authored andcommitted
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>
1 parent 2addd48 commit 7618bb6

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
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

dist/4234-4234.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/4234-4234.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/7144-7144.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

dist/7144-7144.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)