aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/lists/lists.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/lists/lists.go b/modules/lists/lists.go
index 007e927..a219bcc 100644
--- a/modules/lists/lists.go
+++ b/modules/lists/lists.go
@@ -276,6 +276,11 @@ func (m *Module) viewList(w http.ResponseWriter, r *http.Request, p httprouter.P
276 data := m.g.Renderer.DefaultData() 276 data := m.g.Renderer.DefaultData()
277 data["user"] = user 277 data["user"] = user
278 data["list"] = list 278 data["list"] = list
279 if user != nil && user.ID == list.Owner.ID {
280 data["isOwner"] = true
281 } else {
282 data["isOwner"] = false
283 }
279 284
280 m.g.Renderer.RenderPage("list", w, data) 285 m.g.Renderer.RenderPage("list", w, data)
281} 286}