file_manager: add "enable_config_write_access" option
Some installations, such as those in public areas, may wish disallow changes to the configuration. This option defaults to True, so no change in behavior is introduced. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
bc18e3174a
commit
4b9973826e
@ -152,7 +152,8 @@ class FileManager:
|
||||
self.add_reserved_path("secrets", secrets.get_secrets_file(), False)
|
||||
|
||||
config.get('config_path', None, deprecate=True)
|
||||
self.register_data_folder("config", full_access=True)
|
||||
cfg_writeble = config.getboolean("enable_config_write_access", True)
|
||||
self.register_data_folder("config", full_access=cfg_writeble)
|
||||
|
||||
config.get('log_path', None, deprecate=True)
|
||||
self.register_data_folder("logs")
|
||||
|
Loading…
x
Reference in New Issue
Block a user