Skip to content

Commit

Permalink
Fix enrolled device secret display
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed Nov 10, 2023
1 parent 4d33afa commit 2cb3b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zentral/contrib/mdm/templates/mdm/enrolleddevice_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ <h3 class="m-0 fs-5 text-secondary">Device</h3>
<td>
{% if object.filevault_prk and perms.mdm.view_filevault_prk %}
<span class="show-ed-secret bi bi-eye" aria-hidden="true" data-url="{% url 'mdm_api:enrolled_device_filevault_prk' object.pk %}" data-key="filevault_prk" style="cursor:pointer"></span>
<span class="ed-secret" hidden></span>
<span class="ed-secret"></span>
{% else %}
{{ security_info.FDE_HasPersonalRecoveryKey|yesno }}
{% endif %}
Expand All @@ -265,7 +265,7 @@ <h3 class="m-0 fs-5 text-secondary">Device</h3>
{% if object.recovery_password %}
{% if perms.mdm.view_recovery_password %}
<span class="show-ed-secret bi bi-eye" aria-hidden="true" data-url="{% url 'mdm_api:enrolled_device_recovery_password' object.pk %}" data-key="recovery_password" style="cursor:pointer"></span>
<span class="ed-secret" hidden></span>
<span class="ed-secret"></span>
{% else %}
Yes
{% endif %}
Expand Down

0 comments on commit 2cb3b64

Please sign in to comment.