Skip to content

Instantly share code, notes, and snippets.

@ngokevin
Created May 21, 2012 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngokevin/2764271 to your computer and use it in GitHub Desktop.
Save ngokevin/2764271 to your computer and use it in GitHub Desktop.
1 import jinja2
2
3 from jingo import register
4
5 from mkt.stats.views import check_stats_permission
6
7
8 @register.function
9 @jinja2.contextfunction
10 def check_stats_perms(request, addon, for_contributions=True):
11 return check_stats_permission(request, addon, for_contributions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment