diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-25 16:12:12 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-25 16:26:47 +0100 |
commit | fc116f563fec20447e7300605d940cada975154c (patch) | |
tree | 0118df1fba46e54ecf821f84ba388e26ecae4e37 /lib/private/helper.php | |
parent | 553188273c24835b2f8e36e488208f486d674bfc (diff) | |
download | nextcloud-server-fc116f563fec20447e7300605d940cada975154c.tar.gz nextcloud-server-fc116f563fec20447e7300605d940cada975154c.zip |
Allow read-only configuration
Workaround required for IIS setups running ownCloud to prevent dataloss.
Long-term solution would be to move some configuration settings to the database
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index be448b8ff9b..5f46c1311cc 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -974,4 +974,12 @@ class OC_Helper { return array('free' => $free, 'used' => $used, 'total' => $total, 'relative' => $relative); } + + /** + * Returns whether the config file is set manually to read-only + * @return bool + */ + public static function isReadOnlyConfigEnabled() { + return \OC::$server->getConfig()->getSystemValue('config_is_read_only', false); + } } |