diff --git a/app/templates/accounts/index.html.j2 b/app/templates/accounts/index.html.j2 index 73d596f..8d60c8e 100644 --- a/app/templates/accounts/index.html.j2 +++ b/app/templates/accounts/index.html.j2 @@ -41,7 +41,11 @@ "serverSide": true, "ajax": "{{ url_for('accounts.get') }}", "columnDefs": [ - { "searchable": false, "targets": [0,7] }, + {% if config.USER_ENABLE_EMAIL %} + { "searchable": false, "targets": [0,7] }, + {% else %} + { "searchable": false, "targets": [0,6] }, + {% endif %} { "orderable": false, "targets": [0] } ] });