{% load permissions %}
Content: {{ flatpage.content }}
"can_change" of the custom permission set "flatpage_permission":
{% ifhasperm "flatpage_permission.can_change" request.user %} Yes, you are allowed. {% else %} Nope, sorry. {% endifhasperm %}
"top_secret" of the custom permission set "flatpage_permission":
{% ifhasperm "flatpage_permission.top_secret" request.user flatpage %} Yes, you are of course allowed to view flatpage '{{ flatpage }}', aren't you? {% else %} Nope, sorry. Wait, how can you read this then? {% endifhasperm %}