mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* refactor(api): refactor base import path * fix(build-system): update build_binary_devops * fix(build-system): fix build_binary_devops for linux * fix(build-system): fix build_binary_devops for Windows
17 lines
448 B
Go
17 lines
448 B
Go
package migrator
|
|
|
|
import "github.com/portainer/portainer/api"
|
|
|
|
func (m *Migrator) updateSettingsToVersion13() error {
|
|
legacySettings, err := m.settingsService.Settings()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
legacySettings.LDAPSettings.AutoCreateUsers = false
|
|
legacySettings.LDAPSettings.GroupSearchSettings = []portainer.LDAPGroupSearchSettings{
|
|
portainer.LDAPGroupSearchSettings{},
|
|
}
|
|
|
|
return m.settingsService.UpdateSettings(legacySettings)
|
|
}
|