From: Robin Appelman Date: Wed, 7 Oct 2020 13:43:44 +0000 (+0200) Subject: also give storage backend it's change to manipulate the config X-Git-Tag: v20.0.1RC1~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5e77685a4aaf5433bf60cc9ac06a6d9f69b3117;p=nextcloud-server.git also give storage backend it's change to manipulate the config Signed-off-by: Robin Appelman --- diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php index 5a9df0b81f8..b9c0b6da02c 100644 --- a/apps/files_external/lib/Command/Notify.php +++ b/apps/files_external/lib/Command/Notify.php @@ -153,6 +153,15 @@ class Notify extends Base { $mount->setBackendOption('password', $passwordOption); } + try { + $backend = $mount->getBackend(); + $backend->manipulateStorageConfig($mount, $user); + } catch (InsufficientDataForMeaningfulAnswerException $e) { + $noAuth = true; + } catch (StorageNotAvailableException $e) { + $noAuth = true; + } + try { $storage = $this->createStorage($mount); } catch (\Exception $e) {