aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-01-16 21:38:53 (UTC)
committerjan <jan@ruken.pw>2016-01-16 21:38:53 (UTC)
commit1f116227f8b3416113c5950183f2df91f9368782 (patch)
tree955d282f793eb1fa8714af2e671c376e9342d721 /modules
parent5812371696b716417f75eb0ba98ff14a03a5d0ad (diff)
fixieren der useransicht wenn man nicht eingeloggt ist. fixieren der listenansicht wenn man nicht eingeloggt ist.
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.go2
1 files changed, 1 insertions, 1 deletions
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
52 } 52 }
53 53
54 user := currentUser 54 user := currentUser
55 if currentUser.ID != userID { 55 if user == nil || currentUser.ID != userID {
56 user, err = m.g.Charakterin.GetUserByID(userID) 56 user, err = m.g.Charakterin.GetUserByID(userID)
57 if err != nil { 57 if err != nil {
58 http.Redirect(w, r, "/", 302) 58 http.Redirect(w, r, "/", 302)