django/django — pull request #404 by akaariai (2012-09-28 16:54:24+00:00)
Title: Fix #18991 -- Allow permission lookup by "if perm in perms"

When looking permissions from PermWrapper it is now possible to use
{% if "someapp.someperm" in perms %} instead of
{% if perms.someapp.someperm %} allowing for example using variables
for permission lookups.