IT Assets: make GDPR Mask function discoverable from users list

- Users list: add eye-slash icon button per unmasked row (editor+ only)
  clicking opens a compact confirmation modal inline in the list
- User detail: gate Edit / Assign / Mask buttons behind is_editor check
  (button was shown to all but route already blocked readonly users)
This commit is contained in:
ske087
2026-07-09 01:04:00 +03:00
parent 6ca5cd613d
commit 83a8f79c36
2 changed files with 32 additions and 1 deletions
@@ -14,7 +14,7 @@
{% if user.is_masked %}<span class="badge badge-masked fs-6 align-middle ms-2">MASKED</span>{% endif %}
</h1>
<div class="d-flex gap-2">
{% if not user.is_masked %}
{% if not user.is_masked and current_user.is_editor %}
<a href="{{ url_for('users.edit', user_id=user.id) }}" class="btn btn-sm btn-outline-primary">
<i class="bi bi-pencil me-1"></i>Edit
</a>