Skip to content

Commit 87e6651

Browse files
ajrbyersmauromsl
authored andcommitted
fix: guard admin link in proofing template with is_staff check
1 parent 5ae5b5d commit 87e6651

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/templates/admin/typesetting/elements/proofing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% for proofing in round.galleyproofing_set.all %}
33
<div class="callout breakdown file">
44
<div class="callout-title">
5-
<small><a class="pull-right" href="{% url 'admin:typesetting_galleyproofing_change' proofing.pk %}" target="_blank">Edit in Admin</a></small>
5+
{% if request.user.is_staff %}<small><a class="pull-right" href="{% url 'admin:typesetting_galleyproofing_change' proofing.pk %}" target="_blank">Edit in Admin</a></small>{% endif %}
66
<h4>Proofreader #{{ forloop.counter }}: {{ proofing.proofreader.full_name }} <a onclick="return popitup('{% url 'send_user_email_article' proofing.proofreader.pk article.pk %}')"><i class="fa fa-envelope">&nbsp;</i></a></h4>
77
</div>
88
<table class="table small">

0 commit comments

Comments
 (0)