aboutsummaryrefslogtreecommitdiff
path: root/modules/lists
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2015-12-31 00:20:52 (UTC)
committerjan <jan@ruken.pw>2015-12-31 00:20:52 (UTC)
commitb7d9275acdc74ff8084b2a8cf4a8705e6c9d8c47 (patch)
tree9013c5e79bd95f882e4cad75df7932952e67a4b5 /modules/lists
parent16f6b2565d33be12c84dc78ed5fef147d8f435d3 (diff)
GET /new/list kann nur als eingeloggter benutzer betrachtet werden.
Diffstat (limited to 'modules/lists')
-rw-r--r--modules/lists/lists.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/lists/lists.go b/modules/lists/lists.go
index ae1ec65..b77120e 100644
--- a/modules/lists/lists.go
+++ b/modules/lists/lists.go
@@ -263,7 +263,11 @@ func (m *Module) addGrilToList(w http.ResponseWriter, r *http.Request, p httprou
263} 263}
264 264
265func (m *Module) displayCreateList(w http.ResponseWriter, r *http.Request, p httprouter.Params) { 265func (m *Module) displayCreateList(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
266 user, _ := m.g.Charakterin.GetUserFromRequest(r) 266 user, err := m.g.Charakterin.GetUserFromRequest(r)
267 if err != nil {
268 http.Redirect(w, r, "/", 302)
269 return
270 }
267 271
268 data := m.g.Renderer.DefaultData() 272 data := m.g.Renderer.DefaultData()
269 data["user"] = user 273 data["user"] = user