Skip to content

Commit 61317b6

Browse files
committed
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 <mail@danielkesselberg.de>
1 parent efb1b9d commit 61317b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_external/lib/Command/Backends.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private function serializeAuthBackend(\JsonSerializable $backend): array {
9595
*/
9696
private function formatConfiguration(array $parameters): array {
9797
$configuration = array_filter($parameters, function (DefinitionParameter $parameter) {
98-
return $parameter->isFlagSet(DefinitionParameter::FLAG_HIDDEN);
98+
return !$parameter->isFlagSet(DefinitionParameter::FLAG_HIDDEN);
9999
});
100100
return array_map(function (DefinitionParameter $parameter) {
101101
return $parameter->getTypeName();

0 commit comments

Comments
 (0)