{% extends "base.html" %} {% block head %} {% endblock %} {% block title %}Manage Users{% endblock %} {% block content %}
| Username | Role | Companies | Status | 2FA | Actions | |
|---|---|---|---|---|---|---|
| {{ user.username }} | {{ user.email }} |
{% if current_user.role == 'GlobalAdmin' and user.id != current_user.id %}
|
|
{{ 'Active' if user.is_active else 'Inactive' }} |
{{ 'Enabled' if user.mfa_enabled else 'Disabled' }}
{% if current_user.role == 'GlobalAdmin' %}
Required: {% if user.mfa_required is none %} Inherit {% elif user.mfa_required %} Yes {% else %} No {% endif %} |
{% if current_user.is_global_admin() or (current_user.role == 'Admin' and user.role != 'GlobalAdmin' and user.role != 'Admin') %}
{% if user.mfa_secret %}
{% endif %}
{% if user.id != current_user.id %}
{% endif %}
{% else %}
{% endif %}
|