mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Stop non-gov user seeing/changing email and add test
This commit is contained in:
@@ -28,7 +28,13 @@
|
||||
{{ item.value }}
|
||||
{% endcall %}
|
||||
{% call field(align='right') %}
|
||||
<a href="{{ item.url }}">Change</a>
|
||||
{% if item.label == 'Email address' %}
|
||||
{% if can_see_edit %}
|
||||
<a href="{{ item.url }}">Change</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<a href="{{ item.url }}">Change</a>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
{% endcall %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user