From 6db0d0dcfb48c75336443ff4efa42069808b9c0b Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 10 Mar 2022 23:48:04 -0600 Subject: [PATCH] Allow admin to see voting stat --- templates/problem/voting-controls.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/problem/voting-controls.html b/templates/problem/voting-controls.html index 0d0d4ab..1f93193 100644 --- a/templates/problem/voting-controls.html +++ b/templates/problem/voting-controls.html @@ -25,12 +25,14 @@ } -{% if can_vote %} +{% if can_vote or request.user.is_superuser %} - + {% if can_vote %} + + {% endif %} {% if request.user.is_superuser %} - {% include 'problem/voting-stats.html' %} {% endif %}