summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-02 09:00:21 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-02 09:00:21 +0100
commit1e19661daa75a4032f8532e149e7540042d9b7a7 (patch)
tree70cd005d1a2650dedcfdb0a9abe177721df4c06c /apps
parent9baa96a5aebbef629db90ea9cd71f84c5ff6e6c7 (diff)
downloadnextcloud-server-1e19661daa75a4032f8532e149e7540042d9b7a7.tar.gz
nextcloud-server-1e19661daa75a4032f8532e149e7540042d9b7a7.zip
[Sharing] Respect disabled incoming federated shares
Only fetch the incoming federated shares if incoming shares are actually enabled. Fixes #20713
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/appinfo/app.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index 5f56340d254..d7f3ba6e98d 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');
}
);