portainer/api/bolt/migrator/migrate_dbversion4.go

12 lines
272 B
Go
Raw Normal View History

package migrator
func (m *Migrator) updateSettingsToVersion5() error {
legacySettings, err := m.settingsService.Settings()
if err != nil {
return err
}
legacySettings.AllowBindMountsForRegularUsers = true
return m.settingsService.UpdateSettings(legacySettings)
}