mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 09:52:16 +00:00
Generic list only displays edit button if user has perm
This commit is contained in:
@@ -41,7 +41,9 @@
|
||||
<td>
|
||||
<div class="btn-group d-flex" role="group">
|
||||
{% button 'view' url=detail pk=object.pk clazz="btn-sm modal-href" %}
|
||||
{% if can_edit %}
|
||||
{% button 'edit' url=edit pk=object.pk clazz="btn-sm modal-href" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user