diff --git a/files/templates/userpage.html b/files/templates/userpage.html
index 64d3afafd..a3a971c3a 100644
--- a/files/templates/userpage.html
+++ b/files/templates/userpage.html
@@ -224,7 +224,7 @@
{% if v.admin_level >= PERMS['ADMIN_REMOVE'] %}
Remove admin
{% endif %}
- {% if u.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %}
+ {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %}
Revert admin actions
{% endif %}
@@ -597,7 +597,7 @@
Remove admin
{% endif %}
- {% if u.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %}
+ {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] %}
Revert admin actions
{% endif %}