fix(templates): a user can set Inactive on themselves

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-14 14:32:37 -08:00
parent f357615bfb
commit 3b878da59a
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -75,7 +75,7 @@
</p>
{% endif %}
{% if request.user.is_elevated() %}
{% if request.user.has_credential(creds.ACCOUNT_EDIT, approved=[user]) %}
<p>
<label for="id_inactive">{% trans %}Inactive{% endtrans %}:</label>
<input id="id_inactive" type="checkbox" name="J"