Admin mode needed for some features

This commit is contained in:
Edward Betts 2023-09-24 09:21:16 +01:00
parent 2cf5dbb22e
commit e6647a6425
4 changed files with 15 additions and 5 deletions

View file

@ -17,9 +17,12 @@
</form>
<p>
Found {{ q.count() }} people matching '{{ search_for }}'
{% set count = q.count() %}
Found {{ count }} people matching '{{ search_for }}'
{% if config.ADMIN_MODE and count %}
<a href="{{ url_for("merge", q=search_for) }}">merge</a>
{% endif %}
</p>
<ul>