From ea4d60d13a2d9ac82a5f1719822db64030b505a9 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Thu, 31 Jul 2025 15:45:25 +0200 Subject: [PATCH] fix: add IConfig for AppConfigOverwrite Signed-off-by: Daniel Kesselberg --- lib/AppConfigOverwrite.php | 4 +++- lib/RestrictionManager.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/AppConfigOverwrite.php b/lib/AppConfigOverwrite.php index 2f84a141..058830ee 100644 --- a/lib/AppConfigOverwrite.php +++ b/lib/AppConfigOverwrite.php @@ -9,6 +9,7 @@ namespace OCA\Guests; use OC\AppConfig; +use OCP\IConfig; use OCP\IDBConnection; use OCP\Security\ICrypto; use Psr\Log\LoggerInterface; @@ -20,11 +21,12 @@ class AppConfigOverwrite extends AppConfig { public function __construct( IDBConnection $connection, + IConfig $config, LoggerInterface $logger, ICrypto $crypto, array $overWrite, ) { - parent::__construct($connection, $logger, $crypto); + parent::__construct($connection, $config, $logger, $crypto); $this->overWrite = $overWrite; } diff --git a/lib/RestrictionManager.php b/lib/RestrictionManager.php index 89f69d48..86c4f9a7 100644 --- a/lib/RestrictionManager.php +++ b/lib/RestrictionManager.php @@ -12,6 +12,7 @@ use OCA\Files_External\Config\ExternalMountPoint; use OCP\Files\Config\IMountProviderCollection; use OCP\Files\Mount\IMountPoint; +use OCP\IConfig; use OCP\IDBConnection; use OCP\INavigationManager; use OCP\IRequest; @@ -83,6 +84,7 @@ public function lateSetupRestrictions(): void { $this->server->registerService(AppConfig::class, function () { return new AppConfigOverwrite( $this->server->get(IDBConnection::class), + $this->server->get(IConfig::class), $this->server->get(LoggerInterface::class), $this->server->get(ICrypto::class), [