summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorGadzy <dev@gadzy.fr>2014-12-12 10:23:51 +0100
committerGadzy <dev@gadzy.fr>2014-12-12 10:23:51 +0100
commitba3957fb8a12314e6bcef117767013ee98724302 (patch)
treef56631e7f4d7f25a86e83007b79d9bb5c6325afe /apps/files_sharing/appinfo
parent527dd8cdf461e0c28f06c6142b588a2f77da7a10 (diff)
downloadnextcloud-server-ba3957fb8a12314e6bcef117767013ee98724302.tar.gz
nextcloud-server-ba3957fb8a12314e6bcef117767013ee98724302.zip
Check for share by link enabled
Display "Shared by link" section only if sharing by link is enabled.
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/app.php21
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')
+ )
+ );
+ }
}
}