[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:
parent
9baa96a5ae
commit
1e19661daa
|
@ -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');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue