mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +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 %}
|
||||
<dt>Event MIC</dt>
|
||||
<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">
|
||||
{{ event.mic.name }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user