From 1f116227f8b3416113c5950183f2df91f9368782 Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 16 Jan 2016 22:38:53 +0100 Subject: fixieren der useransicht wenn man nicht eingeloggt ist. fixieren der listenansicht wenn man nicht eingeloggt ist. diff --git a/modules/user/user.go b/modules/user/user.go index 2645919..da58382 100644 --- a/modules/user/user.go +++ b/modules/user/user.go @@ -52,7 +52,7 @@ func (m *Module) viewUser(w http.ResponseWriter, r *http.Request, p httprouter.P } user := currentUser - if currentUser.ID != userID { + if user == nil || currentUser.ID != userID { user, err = m.g.Charakterin.GetUserByID(userID) if err != nil { http.Redirect(w, r, "/", 302) diff --git a/views/list.html b/views/list.html index b9ef7c8..81e8825 100644 --- a/views/list.html +++ b/views/list.html @@ -20,7 +20,11 @@
diff --git a/views/list_gril.html b/views/list_gril.html index 5cfd0df..37cf44c 100644 --- a/views/list_gril.html +++ b/views/list_gril.html @@ -5,12 +5,12 @@
-
+
{{ .Value.Gril.Gril.RomajiName }}
{{ .Value.Gril.Gril.KanjiName }}
- {{ if (.Value.IsListOwner) }} + {{ if .Value.IsListOwner }}
-- cgit v0.10.1