From b651d03ea9db71f0778a6fb041ecaef61d9612c4 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 10 Sep 2017 10:13:10 +0100 Subject: [PATCH] Add view mode on users created on previous versions --- filemanager.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/filemanager.go b/filemanager.go index c960aa48..0bcb3284 100644 --- a/filemanager.go +++ b/filemanager.go @@ -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 = ""