From: Clark Tomlinson Date: Wed, 3 Sep 2014 14:00:01 +0000 (-0400) Subject: Hiding add to your own cloud if server2server sharing is not enabled X-Git-Tag: v7.0.4RC1~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4fbd6023f0339b718ec13975cd996a5f57e6e6c7;p=nextcloud-server.git Hiding add to your own cloud if server2server sharing is not enabled --- 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'))?>