{{ r.id }} {{ r.name }} {{ r.description or "" }} {% set role_perm_names = r.permissions | map(attribute='name') | list %} {% for action in actions %}{% endfor %} {% for scope in scopes %} {% for action in actions %} {% set key = scope ~ ':' ~ action %} {% if key in perm_map %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ action }}
{{ scope }}{{ '✓' if key in role_perm_names else '' }}—