{% extends 'base.html' %} {% from 'common.html' import ab %} {% block header %}

{% block title %}configure user role in '{{forum.name}}'{% endblock %}

{% endblock %} {% block content %}

each user has a role in the forum. here, a user may be assigned a role in the forum. otherwise, the user's role is the same as the parent forum. everyone's role is "other" by default.

{% if not is_bureaucrat(forum.id, g.user) %}

you are only allowed to approve members in this forum.

{% endif %} {#

{{ab("role assignment list",url_for("forum.role_list_select",forum_id=forum.id))}}

#}
{% set can_change = not invalid_user and user %} {% if invalid_user %}

requested user does not exist.

{% elif user %}

{{user}}'s role in this forum is "{{role}}"

{% set can_change = role == "other" or is_bureaucrat(forum.id, g.user) %} {% if can_change %} {% else %}

you do not have permission to change the role of this user

{% endif %}
{% endif %} {% if can_change %}

confirm changes?

{% endif %}

{% if can_change %}{% endif %} cancel

{% endblock %}