[Sharing] Respect disabled incoming federated shares

Only fetch the incoming federated shares if incoming shares are actually
enabled.

Fixes #20713
This commit is contained in:
Roeland Jago Douma 2015-12-02 09:00:21 +01:00
parent 9baa96a5ae
commit 1e19661daa
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ $eventDispatcher->addListener(
function() { function() {
\OCP\Util::addScript('files_sharing', 'share'); \OCP\Util::addScript('files_sharing', 'share');
\OCP\Util::addScript('files_sharing', 'sharetabview'); \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'); \OCP\Util::addStyle('files_sharing', 'sharetabview');
} }
); );