diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-12 11:11:40 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-12 11:11:40 +0100 |
commit | 3c21436287be039d35f2b3c05a90f804154baa03 (patch) | |
tree | f56631e7f4d7f25a86e83007b79d9bb5c6325afe | |
parent | 527dd8cdf461e0c28f06c6142b588a2f77da7a10 (diff) | |
parent | ba3957fb8a12314e6bcef117767013ee98724302 (diff) | |
download | nextcloud-server-3c21436287be039d35f2b3c05a90f804154baa03.tar.gz nextcloud-server-3c21436287be039d35f2b3c05a90f804154baa03.zip |
Merge pull request #12805 from Gadzy/patch-1
Check for share by link enabled
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 329afa07519..36d148dce96 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -55,14 +55,17 @@ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') { "name" => $l->t('Shared with others') ) ); - \OCA\Files\App::getNavigationManager()->add( - array( - "id" => 'sharinglinks', - "appname" => 'files_sharing', - "script" => 'list.php', - "order" => 20, - "name" => $l->t('Shared by link') - ) - ); + // Check if sharing by link is enabled + if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') { + \OCA\Files\App::getNavigationManager()->add( + array( + "id" => 'sharinglinks', + "appname" => 'files_sharing', + "script" => 'list.php', + "order" => 20, + "name" => $l->t('Shared by link') + ) + ); + } } } |