Merge pull request #20884 from owncloud/fix_20713
Respect disabled incoming federated shares
This commit is contained in:
commit
d4abbb10d3
|
@ -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