{% extends "base.html" %} {% block title %}User Management - Simplified{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Manage users with the new 4-tier permission system: Superadmin → Admin → Manager → Worker
Select a user from the table below to edit their rights and module access.
| Username | Role | Modules | Access Level | Actions |
|---|---|---|---|---|
| {{ user.username }} | {{ user.role.title() }} |
{% if user.role in ['superadmin', 'admin'] %}
All Modules
{% elif user.modules %}
{% for module in user.get_modules() %}
{{ module.title() }}
{% endfor %}
{% else %}
No modules assigned
{% endif %}
|
{% if user.role == 'superadmin' %} Full system access {% elif user.role == 'admin' %} Full app access {% elif user.role == 'manager' %} Full module access + reports {% elif user.role == 'worker' %} Basic operations only (no reports) - Can have multiple modules {% endif %} |
{% if user.username != session.get('user') %}
{% endif %}
|
No users found. Create your first user above!