{# GET /permissions/roles — crate::pages::permissions::roles::ui::RolesTemplate #} {% extends "ui/base.html" %} {% block title %}Roles{% endblock %} {% block content %}

Permissions

Roles

A role is a named set of permissions. People are given roles; roles are given access.

{% include "pages/permissions/tabs.html" %} {% if page.updated %}

Roles updated. Signed-in sessions stay valid and pick up the change on their next request.

{% endif %}

New role

Inheriting from another role starts the new one with everything that role has, and keeps it in step as that role changes. Starter access is a shortcut for the two common cases; anything narrower is a few clicks on the Access tab.

Existing roles{{ page.roles.len() }}

{% for role in page.roles %} {% endfor %}
RoleKindInherits fromPeopleAccessRemove
{{ role.name }}{% if role.built_in %} built in{% endif %} {{ role.kind }} {% if role.parent.is_empty() %}{% else %}{{ role.parent }}{% endif %} {% match role.users %}{% when Some with (count) %}{{ count }}{% when None %}{% endmatch %} {% if role.editable %} Edit access {% else %} outranks you {% endif %} {% if role.removable() %}
{% else %} {{ role.keeps_reason() }} {% endif %}
{% endblock %}