{% extends "admin/_layout.html" %} {% from "_macros.html" import icon, model_avatar %} {% set section = "groups" %} {% block title %}Groups & permissions - LLeMbas{% endblock %} {% block heading %}Groups & permissions{% endblock %} {% block admin_content %}

Permissions are a union: everyone starts with the baseline below, and each group they belong to can add more. A group never takes something away, so being in a second group can only widen what someone can do. Administrators bypass all of it.

{% if saved %}
{{ icon("check", "icon--sm") }} {{ saved }}
{% endif %}

Baseline permissions

What every signed-in user can do before any group is considered. Turn something off here and grant it through a group to make it opt-in.

{% for section_name, defs in permission_groups.items() %}
{{ section_name }} {% for definition in defs %} {% endfor %}
{% endfor %}

Groups {{ groups|length }}

{% if not groups %}
{{ icon("users", "empty__mark") }}

No groups yet. Create one to grant extra permissions, or to restrict a model to a subset of users.

{% endif %} {% for group in groups %}
{{ group.name }} {{ group.users|length }} member{{ '' if group.users|length == 1 else 's' }}, {{ group.models|length }} model{{ '' if group.models|length == 1 else 's' }}
Grants

Anything already in the baseline stays on regardless — these only add.

{% for section_name, defs in permission_groups.items() %} {% for definition in defs %} {% endfor %} {% endfor %}
Members {% if users %}
{% for account in users %} {% endfor %}
{% else %}

No users yet.

{% endif %}
Model access

Models marked “available to everyone” are reachable regardless. These grant access to the restricted ones.

{% if models %}
{% for model in models %} {% endfor %}
{% else %}

No models yet.

{% endif %}
{% endfor %} {% endblock %}