ui: outflank only when logged in

This commit is contained in:
2023-06-25 16:44:11 +02:00
parent 6f911dfb76
commit c53755663c
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -82,8 +82,10 @@ File is not detected by AV.
</tr>
{% endfor %}
</table>
<a href="{{request.path}}/outflank">Download</a> patched file (undetected)
<br>
{% if current_user.is_authenticated %}
<a href="{{request.path}}/outflank">Download</a> patched file (undetected)<br>
{% endif %}
<br>
{% endif %}
+1 -1
View File
@@ -31,7 +31,7 @@
</td>
<td style="white-space:nowrap;">{{outcome.fileInfo.ident}}</td>
<td>
{% if outcome.outflankPatches|length > 0 %}
{% if current_user.is_authenticated and outcome.outflankPatches|length > 0 %}
<a href="{{request.path}}/outflank">(D)</a>
{% endif %}
</td>