From a1cf7a8d3fa79e4df4ba4a309e71e694f5884203 Mon Sep 17 00:00:00 2001 From: David Read Date: Thu, 23 Jan 2014 10:19:50 +0000 Subject: [PATCH] [#1433] Flesh out the context for group/about setup_template_variables. --- ckan/controllers/group.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckan/controllers/group.py b/ckan/controllers/group.py index ff00ce28613..b89642be4ec 100644 --- a/ckan/controllers/group.py +++ b/ckan/controllers/group.py @@ -856,9 +856,12 @@ def admins(self, id): return render(self._admins_template(c.group_dict['type'])) def about(self, id): + context = {'model': model, 'session': model.Session, + 'user': c.user or c.author} c.group_dict = self._get_group_dict(id) group_type = c.group_dict['type'] - self._setup_template_variables({}, {'id': id}, group_type=group_type) + self._setup_template_variables(context, {'id': id}, + group_type=group_type) return render(self._about_template(group_type)) def _get_group_dict(self, id):