Hide sharing sections in files app when sharing API is disabled
This commit is contained in:
parent
62e06cb0ba
commit
1de5ae8845
|
@ -24,6 +24,9 @@ OCP\Util::addScript('files_sharing', 'external');
|
||||||
|
|
||||||
OC_FileProxy::register(new OCA\Files\Share\Proxy());
|
OC_FileProxy::register(new OCA\Files\Share\Proxy());
|
||||||
|
|
||||||
|
$config = \OC::$server->getConfig();
|
||||||
|
if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
|
||||||
|
|
||||||
\OCA\Files\App::getNavigationManager()->add(
|
\OCA\Files\App::getNavigationManager()->add(
|
||||||
array(
|
array(
|
||||||
"id" => 'sharingin',
|
"id" => 'sharingin',
|
||||||
|
@ -55,3 +58,4 @@ if (\OCP\Util::isSharingDisabledForUser() === false) {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue