From c9f61e5defafb99af425595d61a7980988cfeaa0 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Sat, 28 Nov 2015 01:52:49 +0000 Subject: [PATCH] Added new permission model to view timer boards. Enforced permission on base template for link to timerboard as well as view rendering. Addresses #15 --- stock/templates/public/base.html | 13 +++++++------ timerboard/views.py | 1 + util/__init__.py | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/stock/templates/public/base.html b/stock/templates/public/base.html index d2153f1e..279743d0 100755 --- a/stock/templates/public/base.html +++ b/stock/templates/public/base.html @@ -137,12 +137,13 @@ href="{% url 'auth_fleet_fits' %}"> Fleet Doctrines -
  • - OP Timers -
  • - + {% if perms.auth.timer_view %} +
  • + OP Timers +
  • + {% endif %}