From 4fbd6023f0339b718ec13975cd996a5f57e6e6c7 Mon Sep 17 00:00:00 2001 From: Clark Tomlinson Date: Wed, 3 Sep 2014 10:00:01 -0400 Subject: [PATCH] Hiding add to your own cloud if server2server sharing is not enabled --- apps/files_sharing/public.php | 3 +++ apps/files_sharing/templates/public.php | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 2b84cd3cc3c..8794e4a69d4 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -1,5 +1,7 @@ getAppConfig(); @@ -132,6 +134,7 @@ if (isset($path)) { $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path)); $tmpl->assign('dirToken', $linkItem['token']); $tmpl->assign('sharingToken', $token); + $tmpl->assign('server2serversharing', Helper::isOutgoingServer2serverShareEnabled()); $tmpl->assign('protected', isset($linkItem['share_with']) ? 'true' : 'false'); $urlLinkIdentifiers= (isset($token)?'&t='.$token:'') diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 21fb611548b..46bf90b1b41 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -30,13 +30,18 @@ $previewSupported = OC\Preview::isMimeSupported($_['mimetype']) ? 'true' : 'fals
- + + + "/> t('Download'))?> -- 2.39.5