diff options
-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'); } ); |