{% extends "admin/base_site.html" %} {% load i18n %} {% block title %}{{ title }} | {{ site_title|default:"Django site admin" }}{% endblock %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block content %}
{% if report %}

{{ report.username }} {% if report.superuser %} — {% translate "superuser: every permission on every row, whatever the roles say." %} {% elif report.roles %} — {% translate "roles:" %} {{ report.roles|join:", " }} {% else %} — {% translate "holds no role, so no grant applies." %} {% endif %}

{% for group in grouped %} {% for entry in group.entries %} {% endfor %} {% endfor %}
{% translate "Action" %} {% translate "Rows" %} {% translate "Why" %}
{{ group.model }}
{{ entry.action }} {% if entry.scope %}{{ entry.scope }}{% else %}—{% endif %} {% for source in entry.sources %}
{% if source.origin == "superuser" %} {% translate "superuser" %} {% elif source.scope %} {% blocktranslate with role=source.role scope=source.scope origin=source.origin trimmed %} role {{ role }} grants {{ scope }} ({{ origin }}) {% endblocktranslate %} {% else %} {% blocktranslate with role=source.role trimmed %} role {{ role }}: revoked in the permission matrix {% endblocktranslate %} {% endif %}
{% empty %} {% translate "no role grants it" %} {% endfor %}
{% elif not query %}

{% translate "Pick a user to see exactly what they may do, and which role grants it at which scope." %}

{% endif %} {% endblock %}