Skip to content

Commit

Permalink
#3785 control user if statment contents updated
Browse files Browse the repository at this point in the history
  • Loading branch information
StephDriver committed Jan 12, 2024
1 parent 63d3200 commit 40c9264
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/templates/admin/core/manager/users/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,10 @@ <h2>Journal Users</h2>
href="{% url 'core_user_edit' user.id %}">Edit</a></td>
{% if settings.HIJACK_USERS_ENABLED and request.user.is_superuser %}
<td>
<form action="{% url 'hijack:acquire' %}" method="POST">
{% csrf_token %}
<input type="hidden" name="user_pk" value="{{ user.pk }}">
<button type="submit" class="tiny button"> Control User </button>
<input type="hidden" name="next" value="{% url 'core_dashboard' %}">
</form>
</td>{% endif %}
<button formaction="{% url 'hijack:acquire' %}" name="user_pk" value="{{ user.pk }}" type="submit" class="tiny button"> Control User </button>
<input type="hidden" name="next" value="{% url 'core_dashboard' %}">
</td>
{% endif %}
</tr>
{% endfor %}
</table>
Expand Down

0 comments on commit 40c9264

Please sign in to comment.