diff options
author | Simon L <szaimen@e.mail.de> | 2023-09-04 12:05:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 12:05:36 +0200 |
commit | 489a57e9a382ac72ee46d8740506f4e8f607d131 (patch) | |
tree | 575b535e7d1c2565eec7752d729957a1bae648b6 /apps/files_external | |
parent | 373f3f6d3edfb080a909c061d7874869d9f7cbb0 (diff) | |
parent | 8d1a3daa3fd7d1a4ecb7934662a76266a02ce225 (diff) | |
download | nextcloud-server-489a57e9a382ac72ee46d8740506f4e8f607d131.tar.gz nextcloud-server-489a57e9a382ac72ee46d8740506f4e8f607d131.zip |
Merge pull request #39707 from nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Lib/Backend/Local.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Backend/Local.php b/apps/files_external/lib/Lib/Backend/Local.php index 88b251360d6..bd15cb46127 100644 --- a/apps/files_external/lib/Lib/Backend/Local.php +++ b/apps/files_external/lib/Lib/Backend/Local.php @@ -26,8 +26,10 @@ namespace OCA\Files_External\Lib\Backend; use OCA\Files_External\Lib\Auth\AuthMechanism; use OCA\Files_External\Lib\Auth\NullMechanism; use OCA\Files_External\Lib\DefinitionParameter; +use OCA\Files_External\Lib\StorageConfig; use OCA\Files_External\Service\BackendService; use OCP\IL10N; +use OCP\IUser; class Local extends Backend { public function __construct(IL10N $l, NullMechanism $legacyAuth) { @@ -45,4 +47,8 @@ class Local extends Backend { ->setLegacyAuthMechanism($legacyAuth) ; } + + public function manipulateStorageConfig(StorageConfig &$storage, IUser $user = null): void { + $storage->setBackendOption('isExternal', true); + } } |