mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
[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
1 changed files with 3 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue