From c53755663cbb4bcd436efbd8a673602691e5e345 Mon Sep 17 00:00:00 2001 From: Dobin Date: Sun, 25 Jun 2023 16:44:11 +0200 Subject: [PATCH] ui: outflank only when logged in --- app/templates/file_info.html | 6 ++++-- app/templates/list_files_results.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/templates/file_info.html b/app/templates/file_info.html index 99c459f..7ad5ecc 100644 --- a/app/templates/file_info.html +++ b/app/templates/file_info.html @@ -82,8 +82,10 @@ File is not detected by AV. {% endfor %} -Download patched file (undetected) -
+ +{% if current_user.is_authenticated %} +Download patched file (undetected)
+{% endif %}
{% endif %} diff --git a/app/templates/list_files_results.html b/app/templates/list_files_results.html index 8412df4..f8be0f3 100644 --- a/app/templates/list_files_results.html +++ b/app/templates/list_files_results.html @@ -31,7 +31,7 @@ {{outcome.fileInfo.ident}} - {% if outcome.outflankPatches|length > 0 %} + {% if current_user.is_authenticated and outcome.outflankPatches|length > 0 %} (D) {% endif %}