Source

django-permissions-1.0 / docs / api.rst

Full commit

API

Warning

django-permissions is in alpha state. Please consider the API as supposed to be changed until it reaches beta state.

Utils

Manage permissions

Manage inheritance

Registration

Register permissions

Register roles

Register groups

Template tags

ifhasperm

Checks whether the current user has passed permission:

{% ifhasperm view %}
    <span>Has permission</span>
{% else %}
    <span>Doesn't have permission</span>
{% endifhasperm %}

Models