diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-12 21:45:59 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-17 10:49:29 +0100 |
commit | e7dc91002f87385547528f8ac507b037c0f6be93 (patch) | |
tree | a8605f6bd53ea44817daa1f343f45debcb89ff08 /apps/files_sharing/appinfo | |
parent | 76895b6945f64b25d56a55c70585c441743eb226 (diff) | |
download | nextcloud-server-e7dc91002f87385547528f8ac507b037c0f6be93.tar.gz nextcloud-server-e7dc91002f87385547528f8ac507b037c0f6be93.zip |
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.xml | 4 | ||||
-rw-r--r-- | apps/files_sharing/appinfo/routes.php | 6 |
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' => [ /* |