summaryrefslogtreecommitdiffstats
path: root/apps/files_external
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:43:44 +0200
commitea80d1d68fa5c847320baebecf42134eb8cb7c5b (patch)
treef925a59591d34d6cfd82ccb7c3529abd94a9220f /apps/files_external
parent6fed17a342ad2332f5f4a345e2019d0d8014e3d6 (diff)
downloadnextcloud-server-ea80d1d68fa5c847320baebecf42134eb8cb7c5b.tar.gz
nextcloud-server-ea80d1d68fa5c847320baebecf42134eb8cb7c5b.zip
also give storage backend it's change to manipulate the config
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-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 5a9df0b81f8..b9c0b6da02c 100644
--- a/apps/files_external/lib/Command/Notify.php
+++ b/apps/files_external/lib/Command/Notify.php
@@ -154,6 +154,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>');