aboutsummaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user')
-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)