From 27de0e5621c78bc8e70d060ad217cbf9ec61df83 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 bcf99d01ed..63938201eb 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 42103296d8..a4b3289d4c 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -23,13 +23,18 @@
- + + + "/> t('Download'))?>