fix: make GlobalConfig migrated from .env editable from UI (#3360)

This commit is contained in:
Vishnu Narayanan
2021-11-11 19:31:25 +05:30
committed by GitHub
parent c6326993df
commit 58aae7a4a9

View File

@@ -9,7 +9,7 @@ class GlobalConfigService
return if config_value.blank?
i = InstallationConfig.where(name: config_key).first_or_create(value: config_value)
i = InstallationConfig.where(name: config_key).first_or_create(value: config_value, locked: false)
# To clear a nil value that might have been cached in the previous call
GlobalConfig.clear_cache
i.value