aboutsummaryrefslogtreecommitdiffstats
path: root/apps
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 08:51:49 +0200
commit270d3a426997e690d748dad43e43a75a69f95217 (patch)
tree3c827ecfef2e4c9822093843d3761fbfb6e95330 /apps
parent3fb8aad35bcaff25df7fbd521d4f7fd1f15fdf9e (diff)
downloadnextcloud-server-270d3a426997e690d748dad43e43a75a69f95217.tar.gz
nextcloud-server-270d3a426997e690d748dad43e43a75a69f95217.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.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',