diff options
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); + } } |