Don't show re-shelve buttons on other people's shelves

yikes
This commit is contained in:
Mouse Reeve 2020-11-07 20:47:17 -08:00
parent abd96717da
commit eb1e4fd24c

View file

@ -66,9 +66,11 @@
{% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %} {% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %}
</td> </td>
{% endif %} {% endif %}
{% if shelf.user == request.user %}
<td> <td>
{% include 'snippets/shelf_selector.html' with current=shelf %} {% include 'snippets/shelf_selector.html' with current=shelf %}
</td> </td>
{% endif %}
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>