From 83a8f79c361d06a7527328c8f31f7290d233acd3 Mon Sep 17 00:00:00 2001 From: ske087 Date: Thu, 9 Jul 2026 01:04:00 +0300 Subject: [PATCH] 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) --- .../app/templates/users/detail.html | 2 +- .../app/templates/users/index.html | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/IT_asset_management/app/templates/users/detail.html b/IT_asset_management/app/templates/users/detail.html index 757c8c3..fe59b93 100644 --- a/IT_asset_management/app/templates/users/detail.html +++ b/IT_asset_management/app/templates/users/detail.html @@ -14,7 +14,7 @@ {% if user.is_masked %}MASKED{% endif %}
- {% if not user.is_masked %} + {% if not user.is_masked and current_user.is_editor %} Edit diff --git a/IT_asset_management/app/templates/users/index.html b/IT_asset_management/app/templates/users/index.html index c4095fc..dfc9026 100644 --- a/IT_asset_management/app/templates/users/index.html +++ b/IT_asset_management/app/templates/users/index.html @@ -83,6 +83,37 @@ + {% if not u.is_masked and current_user.is_editor %} + + + + {% endif %} {% else %}