From 0387440a6c91e2efd82b9dce3ebc39d4cb4aa716 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Tue, 4 Jul 2023 15:17:30 +0200 Subject: fix(files_sharing): hide download permission for circle shares Signed-off-by: Richard Steinmetz --- apps/files_sharing/src/components/SharingEntry.vue | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/files_sharing/src') diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index f39e55ccc51..46b65c695ee 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', -- cgit v1.2.3