From 67f8ae9fc73cb5c6ceb5ba1b14b71c75c81a21d5 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 26 May 2015 03:17:20 +0100 Subject: [PATCH] Added various permission checks for links --- RIGS/templates/RIGS/event_table.html | 2 +- RIGS/templates/RIGS/index.html | 6 ++++-- RIGS/templates/RIGS/rigboard.html | 5 ++++- templates/base.html | 13 ++++++++++--- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/RIGS/templates/RIGS/event_table.html b/RIGS/templates/RIGS/event_table.html index 49e4ec6f..38b437ff 100644 --- a/RIGS/templates/RIGS/event_table.html +++ b/RIGS/templates/RIGS/event_table.html @@ -33,7 +33,7 @@

- {{ event.name }} + {{ event.name }} {% if event.venue %} at {{ event.venue }} {% endif %} diff --git a/RIGS/templates/RIGS/index.html b/RIGS/templates/RIGS/index.html index 3097e92c..a99dfa18 100644 --- a/RIGS/templates/RIGS/index.html +++ b/RIGS/templates/RIGS/index.html @@ -10,7 +10,7 @@

-
+
@@ -19,7 +19,7 @@
Rigboard Calendar - New Event + {% if perms.RIGS.add_event %} New Event{% endif %}
@@ -68,9 +68,11 @@
+ {% if perms.RIGS.view_event %}
{% include 'RIGS/activity_feed.html' %}
+ {% endif %}
{% endblock %} \ No newline at end of file diff --git a/RIGS/templates/RIGS/rigboard.html b/RIGS/templates/RIGS/rigboard.html index 07d26bfc..9292e304 100644 --- a/RIGS/templates/RIGS/rigboard.html +++ b/RIGS/templates/RIGS/rigboard.html @@ -8,11 +8,14 @@

Rigboard

-
+
+ {% if perms.RIGS.add_event %} + {% endif %} + {% comment %} {# Bring search back at a later date #}
diff --git a/templates/base.html b/templates/base.html index d128549e..5c8e9ce6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -42,6 +42,7 @@