diff options
author | Jonas Meurer <jonas@freesources.org> | 2021-12-06 12:40:57 +0100 |
---|---|---|
committer | Jonas Meurer <jonas@freesources.org> | 2021-12-13 13:14:17 +0100 |
commit | 241dfef7fb07cb5908ef6bed0f584ebeb277f653 (patch) | |
tree | 36c05463bbf636a6d7c2017146d73bdb5b820862 /lib/public/IConfig.php | |
parent | e8ce7a3e5f0441623ec6d39873f20e8e70f38a37 (diff) | |
download | nextcloud-server-241dfef7fb07cb5908ef6bed0f584ebeb277f653.tar.gz nextcloud-server-241dfef7fb07cb5908ef6bed0f584ebeb277f653.zip |
Don't write to config file if `config_is_read_only` is set
Also don't write to cache in this case to prevent cache and config file
being out of sync.
Fixes: #29901
Signed-off-by: Jonas Meurer <jonas@freesources.org>
Diffstat (limited to 'lib/public/IConfig.php')
-rw-r--r-- | lib/public/IConfig.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php index 6b396624556..33b9c97971a 100644 --- a/lib/public/IConfig.php +++ b/lib/public/IConfig.php @@ -47,6 +47,7 @@ interface IConfig { * * @param array $configs Associative array with `key => value` pairs * If value is null, the config key will be deleted + * @throws HintException if config file is read-only * @since 8.0.0 */ public function setSystemValues(array $configs); @@ -56,6 +57,7 @@ interface IConfig { * * @param string $key the key of the value, under which will be saved * @param mixed $value the value that should be stored + * @throws HintException if config file is read-only * @since 8.0.0 */ public function setSystemValue($key, $value); |