Skip to content

Commit

Permalink
Do not give config to jinja templates
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 21, 2012
1 parent 944970a commit 32a7e68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/lib/base.py
Expand Up @@ -128,6 +128,10 @@ def render_template():

# Jinja2 templates
if template_type == 'jinja2':
# We do't want to have the config in templates it should be
# accessed via g (app_globals) as this gives us flexability such
# as changing via database settings.
del globs['config']
# TODO should we raise error if genshi filters??
return render_jinja2(template_name, globs)

Expand Down

0 comments on commit 32a7e68

Please sign in to comment.