Skip to content

Commit

Permalink
Only show edit to folks with edit rights
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondberg committed Apr 6, 2024
1 parent d4cf253 commit 5ffcfb6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
{% for meeting in meeting_list %}
<div>
<h4>
{{ meeting.when | date:"Y-m-d" }}
<a href="{% url 'meeting' meeting.id %}">view</a> /
<a href="{% url 'admin:meetings_meeting_change' object_id=meeting.id %}">edit</a>
{{ meeting.when | date:"Y-m-d" }}
<a href="{% url 'meeting' meeting.id %}">view</a>
{% if perms.meetings.change_meeting %}
/ <a href="{% url 'admin:meetings_meeting_change' object_id=meeting.id %}">edit</a>
{% endif %}
</h4>

<div class="container">
Expand Down

0 comments on commit 5ffcfb6

Please sign in to comment.