{% extends "settings.html" %} {% block title %} {{ owner.canonical_name }}/{{ ml.name }} settings — {{ cfg("sr.ht", "site-name") }} lists {% endblock %} {% macro perm_checkbox(type, perms, name, readonly=False) %} {% if type.name not in ["none", "normal", "all"] %}
{% endif %} {% endmacro %} {% block content %}
{% if not hide_global %}

Global permissions

{{csrf_token()}}

These permissions allow you to control what kinds of users are able to do what sorts of activities on your mailing list.

Non-subscriber Permissions

Permissions granted to users who are not subscribed or logged in to a sr.ht account. Any permission granted to anonymous users are granted to subscribers and account holders as well, unless explicitly revoked from that user.

{% for a in access_type_list %} {{ perm_checkbox(a, ml.nonsubscriber_permissions , "nonsub") }} {% endfor %} {{ valid.summary("list_nonsubscriber_access") }}

Subscriber Permissions

Permissions granted to users who are subscribed to the list.

{% for a in access_type_list %} {{ perm_checkbox(a, ml.subscriber_permissions , "sub") }} {% endfor %} {{ valid.summary("list_subscriber_access") }}

Account Holder Permissions

Permissions granted to logged in holders of sr.ht accounts.

{% for a in access_type_list %} {{ perm_checkbox(a, ml.account_permissions, "account") }} {% endfor %} {{ valid.summary("list_account_access") }}

The list owner (you) is always granted all permissions.

{{ valid.summary() }}
{% endif %} {% if not hide_user %}

User permissions

{% if any(ml.acls) %} {% for acl in ml.acls %} {% endfor %}
user granted access
{% if acl.user %} ~{{acl.user.username}} {% else %} {{acl.email}} {% endif %} {{ acl.created | date }} {% for a in access_type_list %} {{ perm_checkbox(a, acl.permissions, None, readonly=True) }} {% endfor %}
{{csrf_token()}}
{% endif %}
{{csrf_token()}}
{{valid.summary("user")}}

Access grants

These will override any other permissions for this user.

{% for a in access_type_list %} {{ perm_checkbox(a, ListAccess.all, "acl") }} {% endfor %} {{ valid.summary("list_acl_access") }}
{{ valid.summary() }}
{% endif %}
{% endblock %}