Add view mode on users created on previous versions

pull/250/head
Henrique Dias 2017-09-10 10:13:10 +01:00
parent 750862b17d
commit b651d03ea9
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 8 additions and 0 deletions

View File

@ -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 = ""