Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-12-12 23:45:59 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-12-17 12:49:29 +0300
commite7dc91002f87385547528f8ac507b037c0f6be93 (patch)
treea8605f6bd53ea44817daa1f343f45debcb89ff08 /apps/files_sharing/appinfo
parent76895b6945f64b25d56a55c70585c441743eb226 (diff)
Allow users to specify to accept (internal) shares by default
Fixes #18255 A new user setting allows a user to always accept (internal) shares. For example if they don't like accepting shares manually ;) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/info.xml4
-rw-r--r--apps/files_sharing/appinfo/routes.php6
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/info.xml b/apps/files_sharing/appinfo/info.xml
index 111ed9c45c6..2f093f5c7c0 100644
--- a/apps/files_sharing/appinfo/info.xml
+++ b/apps/files_sharing/appinfo/info.xml
@@ -45,6 +45,10 @@ Turning the feature off removes shared files and folders on the server for all s
<command>OCA\Files_Sharing\Command\ExiprationNotification</command>
</commands>
+ <settings>
+ <personal>OCA\Files_Sharing\Settings\Personal</personal>
+ </settings>
+
<activity>
<settings>
<setting>OCA\Files_Sharing\Activity\Settings\Shared</setting>
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 6f9b140e7e9..b543eace305 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -40,12 +40,16 @@ return [
'url' => '/publicpreview/{token}',
'verb' => 'GET',
],
-
[
'name' => 'ShareInfo#info',
'url' => '/shareinfo',
'verb' => 'POST',
],
+ [
+ 'name' => 'Settings#setDefaultAccept',
+ 'url' => '/settings/defaultAccept',
+ 'verb' => 'PUT',
+ ]
],
'ocs' => [
/*