Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix setting migrator

Steven5b92ac177535
diff --git a/store/migrator.go b/store/migrator.go
index 703b80e34..fca734f3b 100644
--- a/store/migrator.go
+++ b/store/migrator.go
@@ -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" {