Can delete Godfathers

This commit is contained in:
2016-09-29 15:04:43 +02:00
parent a008f34288
commit 2c6f17063a
4 changed files with 48 additions and 17 deletions

View File

@@ -55,3 +55,9 @@
</ul>
{% endif %}
{% endmacro %}
{% macro delete_godfather(user, profile, godfather, is_father) %}
{% if user == profile or user.is_root or user.is_board_member %}
<a href="{{ url("core:user_godfathers_delete", user_id=profile.id, godfather_id=godfather.id, is_father=is_father) }}">{% trans %}Delete{% endtrans %}</a>
{% endif %}
{% endmacro %}