mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
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:
parent
441855c69c
commit
eb3eec5a9d
3 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue