diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2023-07-04 15:17:30 +0200 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2023-07-10 09:45:46 +0200 |
commit | fd5dbc504f686601c40027bc15beea02a1f1d0f1 (patch) | |
tree | eac7a655c82ce6057b2f58216fa2e51c91d88bc0 /apps | |
parent | 9c31710acd4a4c1e39122b71b01c60a25201dcdd (diff) | |
download | nextcloud-server-fd5dbc504f686601c40027bc15beea02a1f1d0f1.tar.gz nextcloud-server-fd5dbc504f686601c40027bc15beea02a1f1d0f1.zip |
fix(files_sharing): hide download permission for circle shares
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntry.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index 92527a8f14a..a7ab43249fc 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -404,6 +404,12 @@ export default { * @return {boolean} */ isSetDownloadButtonVisible() { + // TODO: Implement download permission for circle shares instead of hiding the option. + // https://github.com/nextcloud/server/issues/39161 + if (this.share && this.share.type === this.SHARE_TYPES.SHARE_TYPE_CIRCLE) { + return false + } + const allowedMimetypes = [ // Office documents 'application/msword', |