From 8ed299f23f24a76523a0de4437c97ad414270a87 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Fri, 29 May 2015 15:20:29 +0100 Subject: [PATCH] Fix for events without an MIC causing 500 errors for people with permission to view profiles. --- RIGS/templates/RIGS/event_detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/templates/RIGS/event_detail.html b/RIGS/templates/RIGS/event_detail.html index 13d97cf5..c1e21c25 100644 --- a/RIGS/templates/RIGS/event_detail.html +++ b/RIGS/templates/RIGS/event_detail.html @@ -110,7 +110,7 @@ {% if event.is_rig %}
Event MIC
- {% if perms.RIGS.view_profile %} + {% if event.mic and perms.RIGS.view_profile %} {{ event.mic.name }}