Properly handle eventauthorisations in new versioning

It's not great, not terrible...
This commit is contained in:
2020-10-07 16:45:46 +01:00
parent abf3cfe1ce
commit ae13cabe09
9 changed files with 55 additions and 38 deletions

View File

@@ -36,7 +36,7 @@
<div class="row mb-3">
<div class="col-sm-12">
<div class="card">
{% with object=event %}
{% with object=event auth=True %}
{% include 'item_table.html' %}
{% endwith %}
</div>

View File

@@ -3,6 +3,9 @@
<div class="modal-content">
<div class="modal-header">
<h4>{{ object.name|default:"New Event" }}</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<form id="item-form">
<div class="modal-body">

View File

@@ -26,7 +26,7 @@
{% include 'item_row.html' %}
{% endfor %}
</tbody>
{% if perms.RIGS.view_event %}
{% if auth or perms.RIGS.view_event %}
<tfoot>
<tr>
<td rowspan="3" colspan="2"></td>