mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix crash due to null data retention config parameter. (#7702)
This commit is contained in:
committed by
Joram Wilander
parent
761322395e
commit
673df81669
@@ -1423,7 +1423,7 @@ func (o *Config) SetDefaults() {
|
||||
}
|
||||
|
||||
if o.DataRetentionSettings.EnableFileDeletion == nil {
|
||||
o.DataRetentionSettings.EnableMessageDeletion = NewBool(false)
|
||||
o.DataRetentionSettings.EnableFileDeletion = NewBool(false)
|
||||
}
|
||||
|
||||
if o.DataRetentionSettings.MessageRetentionDays == nil {
|
||||
|
||||
Reference in New Issue
Block a user