Adds permissions to templates

This commit is contained in:
Mouse Reeve
2020-10-01 13:09:37 -07:00
parent 9209039761
commit c396489dff
2 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,7 @@
<span>{% include 'snippets/book_titleby.html' with book=book %}</span>
</h2>
{% if request.user.is_authenticated %}
{% if request.user.is_authenticated and perms.bookwyrm.edit_book %}
<div class="level-right">
<a href="{{ book.id }}/edit">edit
<span class="icon icon-pencil">