diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-02 09:00:21 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-02 09:00:21 +0100 |
commit | 1e19661daa75a4032f8532e149e7540042d9b7a7 (patch) | |
tree | 70cd005d1a2650dedcfdb0a9abe177721df4c06c /apps | |
parent | 9baa96a5aebbef629db90ea9cd71f84c5ff6e6c7 (diff) | |
download | nextcloud-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.php | 4 |
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'); } ); |