Merge pull request #20884 from owncloud/fix_20713

Respect disabled incoming federated shares
This commit is contained in:
Thomas Müller 2015-12-02 10:56:59 +01:00
commit d4abbb10d3
1 changed files with 3 additions and 1 deletions

View File

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