From 6e082ff7c5b6237941d136cb0d966617e653abde Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 9 Feb 2026 17:42:24 +0100 Subject: [PATCH] fix: show configuration options for external storage backends The occ files_external_backends command is supposed to list available backends along with their configuration options. For the SMB backend, only the timeout option is currently shown, while options like host, share, root, and domain are missing. This makes configuring external storage via occ complicated. Since the timeout option is marked as hidden but still shown, while the other options are not, the logic needs to be inverted so that all relevant configuration options are displayed correctly. Signed-off-by: Daniel Kesselberg --- apps/files_external/lib/Command/Backends.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Command/Backends.php b/apps/files_external/lib/Command/Backends.php index 7fab0477adfca..55479787fe7c4 100644 --- a/apps/files_external/lib/Command/Backends.php +++ b/apps/files_external/lib/Command/Backends.php @@ -95,7 +95,7 @@ private function serializeAuthBackend(\JsonSerializable $backend): array { */ private function formatConfiguration(array $parameters): array { $configuration = array_filter($parameters, function (DefinitionParameter $parameter) { - return $parameter->isFlagSet(DefinitionParameter::FLAG_HIDDEN); + return !$parameter->isFlagSet(DefinitionParameter::FLAG_HIDDEN); }); return array_map(function (DefinitionParameter $parameter) { return $parameter->getTypeName();