mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
fix: replace 'hijack' with 'become' on button
This commit is contained in:
@@ -37,7 +37,8 @@
|
|||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
href="{% url 'people:person.update' pk=person.pk %}">Update</a>
|
href="{% url 'people:person.update' pk=person.pk %}">Update</a>
|
||||||
|
|
||||||
{% if person.user == request.user %}
|
{% load hijack_tags %}
|
||||||
|
{% if person.user == request.user and not request|is_hijacked %}
|
||||||
<a class="btn btn-info"
|
<a class="btn btn-info"
|
||||||
href="{% url 'password_change' %}?next={{ person.get_absolute_url }}">Change Password</a>
|
href="{% url 'password_change' %}?next={{ person.get_absolute_url }}">Change Password</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -45,7 +46,7 @@
|
|||||||
{% if request.user.is_superuser and person.user %}
|
{% if request.user.is_superuser and person.user %}
|
||||||
<form style="display: inline;" action="/hijack/{{ person.user.pk }}/" method="post">
|
<form style="display: inline;" action="/hijack/{{ person.user.pk }}/" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="btn btn-warning" type="submit">Hijack {{ person.name }}</button>
|
<button class="btn btn-warning" type="submit">Become {{ person.name }}</button>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user