diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-07 15:43:44 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-10-07 15:44:09 +0200 |
commit | 683142e1f3df359812b1134fd392d1edef0b9a92 (patch) | |
tree | 1de190014d271fb31a118345ca1474abf63180ad | |
parent | 597cc797a17e7d318e14963e2c45265764d49580 (diff) | |
download | nextcloud-server-683142e1f3df359812b1134fd392d1edef0b9a92.tar.gz nextcloud-server-683142e1f3df359812b1134fd392d1edef0b9a92.zip |
also give storage backend it's change to manipulate the config
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | apps/files_external/lib/Command/Notify.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php index e20a859ceb5..734d7b162af 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 { } 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) { $output->writeln('<error>Error while trying to create storage</error>'); |