mirror of
https://github.com/usememos/memos.git
synced 2025-02-11 08:50:40 +01:00
chore: fix setting migrator
This commit is contained in:
parent
f2eb9f1b8f
commit
5b92ac1775
@ -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" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user