Check for share by link enabled

Display "Shared by link" section only if sharing by link is enabled.
This commit is contained in:
Gadzy 2014-12-12 10:23:51 +01:00
parent 527dd8cdf4
commit ba3957fb8a
1 changed files with 12 additions and 9 deletions

View File

@ -55,6 +55,8 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
"name" => $l->t('Shared with others')
)
);
// Check if sharing by link is enabled
if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
\OCA\Files\App::getNavigationManager()->add(
array(
"id" => 'sharinglinks',
@ -65,4 +67,5 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
)
);
}
}
}