mirror of https://github.com/portainer/portainer
12 lines
276 B
Go
12 lines
276 B
Go
|
package migrator
|
||
|
|
||
|
func (m *Migrator) updateSettingsToVersion6() error {
|
||
|
legacySettings, err := m.settingsService.Settings()
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
legacySettings.AllowPrivilegedModeForRegularUsers = true
|
||
|
return m.settingsService.UpdateSettings(legacySettings)
|
||
|
}
|