From 1e19661daa75a4032f8532e149e7540042d9b7a7 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 2 Dec 2015 09:00:21 +0100 Subject: [PATCH] [Sharing] Respect disabled incoming federated shares Only fetch the incoming federated shares if incoming shares are actually enabled. Fixes #20713 --- apps/files_sharing/appinfo/app.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 5f56340d25..d7f3ba6e98 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -57,7 +57,9 @@ $eventDispatcher->addListener( function() { \OCP\Util::addScript('files_sharing', 'share'); \OCP\Util::addScript('files_sharing', 'sharetabview'); - \OCP\Util::addScript('files_sharing', 'external'); + if (\OC::$server->getConfig()->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'yes') { + \OCP\Util::addScript('files_sharing', 'external'); + } \OCP\Util::addStyle('files_sharing', 'sharetabview'); } );