Add view mode on users created on previous versions
parent
750862b17d
commit
b651d03ea9
|
@ -201,6 +201,14 @@ func (m *FileManager) Setup() error {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: remove this after 1.5
|
||||
for _, user := range users {
|
||||
if user.ViewMode != "list" && user.ViewMode != "mosaic" {
|
||||
user.ViewMode = "list"
|
||||
m.Store.Users.Update(user, "ViewMode")
|
||||
}
|
||||
}
|
||||
|
||||
m.DefaultUser.Username = ""
|
||||
m.DefaultUser.Password = ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue