aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/mixins
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-02-02 16:10:52 +0100
committerLouis Chemineau <louis@chmn.me>2022-02-15 11:54:17 +0100
commitda435b1e67930e85fc30fd1b94c6214caa086f4f (patch)
tree53eab82dc4e89e8da2e94185588e45a1f21687f7 /apps/files_sharing/src/mixins
parentacba237ec56a8987e246d1046bd8f5b763db1336 (diff)
downloadnextcloud-server-da435b1e67930e85fc30fd1b94c6214caa086f4f.tar.gz
nextcloud-server-da435b1e67930e85fc30fd1b94c6214caa086f4f.zip
Support CRUD share permissions
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_sharing/src/mixins')
-rw-r--r--apps/files_sharing/src/mixins/ShareRequests.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_sharing/src/mixins/ShareRequests.js b/apps/files_sharing/src/mixins/ShareRequests.js
index 15585ec49cf..bc6e3bf1644 100644
--- a/apps/files_sharing/src/mixins/ShareRequests.js
+++ b/apps/files_sharing/src/mixins/ShareRequests.js
@@ -31,9 +31,6 @@ import axios from '@nextcloud/axios'
import Share from '../models/Share'
const shareUrl = generateOcsUrl('apps/files_sharing/api/v1/shares')
-const headers = {
- 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
-}
export default {
methods: {
@@ -103,7 +100,7 @@ export default {
*/
async updateShare(id, properties) {
try {
- const request = await axios.put(shareUrl + `/${id}`, properties, headers)
+ const request = await axios.put(shareUrl + `/${id}`, properties)
if (!request?.data?.ocs) {
throw request
}