diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-01 16:37:29 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-01 16:37:29 +0100 |
commit | 0769556989f3426d1c8ab51043518e2748b143fe (patch) | |
tree | a32f4b4cf9fd1904dec339aed3e52da09c7171fa /lib/private/helper.php | |
parent | 8db4dd7585aa9daebb32a3f3305f4061b17c316d (diff) | |
parent | fc116f563fec20447e7300605d940cada975154c (diff) | |
download | nextcloud-server-0769556989f3426d1c8ab51043518e2748b143fe.tar.gz nextcloud-server-0769556989f3426d1c8ab51043518e2748b143fe.zip |
Merge pull request #12419 from owncloud/read-only-config
Allow read-only configuration
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 d43eefcdc52..0e302275540 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -973,4 +973,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); + } } |