{% extends "clearance/admin/base.html" %} {% load i18n clearance %} {% block crumbs %}› {% translate 'People' %} › {{ person }}{% endblock %} {% block content %}
{% if standing.superuser %}

{% translate 'A superuser holds every permission and reaches every row, whatever is given here.' %}

{% endif %} {% if standing.roles %}

{% translate 'Roles' %}

{% endif %}

{% translate 'Bundles' %}

{% if may_edit and other_bundles %}
{% csrf_token %}
{% endif %}

{% translate 'Their own grants' %}

{% for permission, scope in standing.direct %} {% empty %}{% endfor %}
{{ permission|label:labels }}{{ scope|default_if_none:_("the model's default") }}
{% translate 'None.' %}

{% translate 'Taken away' %}

{% for revocation in standing.revocations %} {% empty %}{% endfor %}
{{ revocation.permission|label:labels }}{{ revocation.reason }} {% if may_edit %}
{% csrf_token %}
{% endif %}
{% translate 'Nothing.' %}
{% if may_edit %}

{% translate 'Give or take away one permission' %}

{% csrf_token %}
{% endif %}

{% translate 'What they end up allowed' %}

{% for held in standing.allowed %} {% empty %}{% endfor %}
{% translate 'Permission' %}{% translate 'From' %}
{{ held.permission|label:labels }} {{ held.name }} {% for source in held.sources %}
{% if source.direct %}{% translate 'their own grant' %}{% else %}{{ source.bundle|label:labels }}{% if source.starting %} ({% translate 'from their role' %}){% endif %}{% endif %} — {{ source.scope|default_if_none:_("the model's default") }}
{% endfor %}
{% translate 'Nothing.' %}
{% if standing.stopped %}

{% translate "Given, but stopped by their roles' ceiling" %}

{% endif %}
{% endblock %}