summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-10-07 15:43:44 +0200
committerRobin Appelman <robin@icewind.nl>2020-10-07 15:44:09 +0200
commit683142e1f3df359812b1134fd392d1edef0b9a92 (patch)
tree1de190014d271fb31a118345ca1474abf63180ad
parent597cc797a17e7d318e14963e2c45265764d49580 (diff)
downloadnextcloud-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.php9
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>');