diff --git a/kernel/model/conf.go b/kernel/model/conf.go index d59d0775b..788c06924 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -488,6 +488,10 @@ func NewLute() (ret *lute.Lute) { var confSaveLock = sync.Mutex{} func (conf *AppConf) Save() { + if util.ReadOnly { + return + } + confSaveLock.Lock() confSaveLock.Unlock()