From ff89354588252340cd76a0b135e30fcb4fab7b30 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 9 Aug 2016 14:09:53 +0200 Subject: don't show dependency info if we cant create new mounts --- apps/files_external/css/settings.css | 5 ++--- apps/files_external/templates/settings.php | 8 +++++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/files_external/css/settings.css b/apps/files_external/css/settings.css index d09ab3ed427..43bbb080d7e 100644 --- a/apps/files_external/css/settings.css +++ b/apps/files_external/css/settings.css @@ -1,6 +1,5 @@ -#files_external { - margin-bottom: 0; - padding-bottom: 0; +#global_credentials { + padding-top: 0; } #externalStorage td.status { diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index 640604c14c5..47230f98bd3 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -4,6 +4,8 @@ use \OCA\Files_External\Lib\DefinitionParameter; use \OCA\Files_External\Service\BackendService; + $canCreateMounts = $_['visibilityType'] === BackendService::VISIBILITY_ADMIN || $_['allowUserMounting']; + $l->t("Enable encryption"); $l->t("Enable previews"); $l->t("Enable sharing"); @@ -87,7 +89,7 @@

t('External Storage')); ?>

- '')) print_unescaped(''.$_['dependencies'].''); ?> + '') and $canCreateMounts) print_unescaped(''.$_['dependencies'].''); ?> '> @@ -103,7 +105,7 @@ + style="display: none;" > @@ -186,7 +188,7 @@ - +

t('Global Credentials')); ?>

-- cgit v1.2.3