From d0525df63ca37779e053043cb8a0a185e2f7ac1b Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Tue, 9 Jun 2020 20:59:41 +0200
Subject: Pass the proper share permissions to the create share call

Fixes #21188

This way we do not run into the share permission issue

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
---
 apps/files_sharing/src/components/SharingInput.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'apps/files_sharing/src/components/SharingInput.vue')

diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index d4ba4f91624..41d80cc249b 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -435,6 +435,7 @@ export default {
 					path,
 					shareType: value.shareType,
 					shareWith: value.shareWith,
+					permissions: this.fileInfo.sharePermissions,
 				})
 				this.$emit('add:share', share)
 
-- 
cgit v1.2.3

