mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-22 16:02:16 +00:00
Fix for events without an MIC causing 500 errors for people with permission to view profiles.
This commit is contained in:
@@ -110,7 +110,7 @@
|
|||||||
{% if event.is_rig %}
|
{% if event.is_rig %}
|
||||||
<dt>Event MIC</dt>
|
<dt>Event MIC</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{% if perms.RIGS.view_profile %}
|
{% if event.mic and perms.RIGS.view_profile %}
|
||||||
<a href="{% url 'profile_detail' event.mic.pk %}" class="modal-href">
|
<a href="{% url 'profile_detail' event.mic.pk %}" class="modal-href">
|
||||||
{{ event.mic.name }}
|
{{ event.mic.name }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user