chore: fix setting migrator

This commit is contained in:
Steven 2024-02-23 09:16:34 +08:00
parent f2eb9f1b8f
commit 5b92ac1775

View File

@ -28,7 +28,7 @@ func (s *Store) MigrateWorkspaceSetting(ctx context.Context) error {
// nolint
json.Unmarshal([]byte(workspaceSetting.Value), &baseValue)
if workspaceSetting.Name == "allow-signup" {
workspaceGeneralSetting.DisallowSignup = baseValue.(bool)
workspaceGeneralSetting.DisallowSignup = !baseValue.(bool)
} else if workspaceSetting.Name == "disable-password-login" {
workspaceGeneralSetting.DisallowPasswordLogin = baseValue.(bool)
} else if workspaceSetting.Name == "additional-style" {