{% extends "base.html" %} {% block title %}{{ role.name }} — {{ library_name() }}{% endblock %} {% block content %}

{{ role.name }}

{% if role.is_system %}Preset role — read-only{% else %}Custom role{% endif %}

{% if message %}

{{ message }}

{% endif %} {% if error %}

{{ error }}

{% endif %} {% set is_full_access = "*" in role.permissions %} {% if role.is_system %}
Permissions
{% if is_full_access %} Full access (["*"]) {% else %} {% for perm in role.permissions %}{{ perm }}{% if not loop.last %}, {% endif %}{% endfor %} {% endif %}
Users with this role
{% if role.users %} {% for u in role.users %}{{ u.username }}{% if not loop.last %}, {% endif %}{% endfor %} {% else %} None {% endif %}
{% else %}
Permissions
{% for category, perms in permission_groups %}
{{ category }} {% for perm in perms %} {% endfor %}
{% endfor %}
Users with this role
{% if role.users %} {% for u in role.users %}{{ u.username }}{% if not loop.last %}, {% endif %}{% endfor %} {% else %} None {% endif %}
Cancel

{% endif %} {% endblock %} {% block scripts %} {% endblock %}