aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-06 16:48:21 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-06 16:48:21 +0100
commitfb6b84b5c985d1f6741072d76602bfaff93f3f0d (patch)
tree1ce613f00e8c6ab55e5ec6d26f9436ce8138af2a /apps/files_sharing/appinfo
parente5d3efb99e2d77b30339496285e15d5d00fc9e60 (diff)
downloadnextcloud-server-fb6b84b5c985d1f6741072d76602bfaff93f3f0d.tar.gz
nextcloud-server-fb6b84b5c985d1f6741072d76602bfaff93f3f0d.zip
Accept shares when you open mail
Fixes #18380 When you open a direct share to yourself. We should autoaccept the share. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/routes.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index b543eace305..ad3d11fc3a1 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -49,7 +49,12 @@ return [
'name' => 'Settings#setDefaultAccept',
'url' => '/settings/defaultAccept',
'verb' => 'PUT',
- ]
+ ],
+ [
+ 'name' => 'Accept#accept',
+ 'url' => '/accept/{shareId}',
+ 'verb' => 'GET',
+ ],
],
'ocs' => [
/*