Skip to content
Snippets Groups Projects
Commit 0f0c4b30 authored by Odin Johan Vatne's avatar Odin Johan Vatne
Browse files

Prevent admin from self-deleting

parent a98a41a0
No related branches found
No related tags found
No related merge requests found
......@@ -56,11 +56,15 @@
Logged in as {{user.username}}<br>
{{user.first_name}} {{user.last_name}}
</div>
{% if user.username == 'admin' %}
<a href="/logout/"><button type="button">Sign out</button></a>
{% else %}
<form action="/demouser/end/" method="post" style="display: inline">
{% csrf_token %}
<input type="submit" value="Finish Test" />
</form>
<a href="/logout/" hidden><button type="button">Sign out</button></a>
{% endif %}
</div>
{% else %}
<div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment