Commit 4a347c18 authored by Daniel W Bond's avatar Daniel W Bond

ordering of ors and ands

parent 2050d391
......@@ -292,7 +292,7 @@ SRCT Bookshare • {{ listing.title }}
</div>
<div class="col-md-2 col-sm-6 col-xs-6 text-center">
{% if not listing.exchanged or not listing.cancelled and bid.bidder.user == request.user %}
{% if request.user == bid.bidder.user and not listing.exchanged or not listing.cancelled %}
<h4><a href="{% url 'edit_bid' listing.slug bid.slug %}"<span class="label label-default">Edit</span></a></h4>
{% endif %}
{% if bid == listing.winning_bid %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment