From 6ff1f464ce8591e734562de8fe0443fb2934a1e4 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sat, 9 Mar 2024 15:20:11 +0000 Subject: [PATCH] fix: regression with updating read-only config Signed-off-by: Sam Bull --- lib/private/Config.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/private/Config.php b/lib/private/Config.php index 803ce859de434..f01b30d226a33 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -153,8 +153,6 @@ public function setValue($key, $value) { * @throws HintException */ protected function set($key, $value) { - $this->checkReadOnly(); - if (!isset($this->cache[$key]) || $this->cache[$key] !== $value) { // Add change $this->cache[$key] = $value; @@ -185,8 +183,6 @@ public function deleteKey($key) { * @throws HintException */ protected function delete($key) { - $this->checkReadOnly(); - if (isset($this->cache[$key])) { // Delete key from cache unset($this->cache[$key]);