summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2023-07-04 15:17:30 +0200
committerRichard Steinmetz <richard@steinmetz.cloud>2023-07-10 09:43:49 +0200
commit0387440a6c91e2efd82b9dce3ebc39d4cb4aa716 (patch)
tree6567c8561b7d15b829152a0066660a9388f9a4e1 /apps/files_sharing
parent7e9bd4fcea91e59e345bf9bf2c51c5069171b546 (diff)
downloadnextcloud-server-0387440a6c91e2efd82b9dce3ebc39d4cb4aa716.tar.gz
nextcloud-server-0387440a6c91e2efd82b9dce3ebc39d4cb4aa716.zip
fix(files_sharing): hide download permission for circle shares
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue6
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 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',