]> source.dussan.org Git - nextcloud-server.git/commitdiff
also give storage backend it's change to manipulate the config 23426/head
authorRobin Appelman <robin@icewind.nl>
Wed, 7 Oct 2020 13:43:44 +0000 (15:43 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 13 Oct 2020 17:44:21 +0000 (17:44 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/lib/Command/Notify.php

index 5a9df0b81f858fec25831ba2cdab3598f9b94d26..b9c0b6da02ca44a36718f8d20fe0d19496328e79 100644 (file)
@@ -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) {