mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
fix(files_sharing): also allow removing READ permissions on email shares
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
7878f1ceea
commit
2c94404969
1 changed files with 4 additions and 1 deletions
|
|
@ -603,7 +603,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue