Skip to content
Snippets Groups Projects
Commit d4abbb10 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #20884 from owncloud/fix_20713

Respect disabled incoming federated shares
parents 812a390f 1e19661d
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,9 @@ $eventDispatcher->addListener( ...@@ -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');
} }
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment