mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Make sure delete mobile number only shown when needed
Users who have no mobile number set, users who are not on email auth and users who are not on "Change mobile number" page should not see the delete link.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<div class="govuk-grid-column-three-quarters">
|
||||
{% call form_wrapper() %}
|
||||
{{ form_field(error_message_with_html=True) }}
|
||||
{% if current_user.auth_type == 'email_auth' %}
|
||||
{% if current_user.auth_type == 'email_auth' and (current_user.mobile_number and thing == "mobile number") %}
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
delete_link=url_for(
|
||||
|
||||
Reference in New Issue
Block a user