add user-permission management

This commit is contained in:
Cervinko Cera
2016-04-27 10:35:23 +02:00
parent 5d6f18f4c3
commit c7b7b3866e
7 changed files with 257 additions and 119 deletions
+1 -1
View File
@@ -154,7 +154,7 @@
</div>
{% endif %}
{% if g.user.role %}
{% if g.user.role_edit() %}
<div class="btn-toolbar" role="toolbar">
<div class="btn-group" role="group" aria-label="Edit/Delete book">
<a href="{{ url_for('edit_book', book_id=entry.id) }}" class="btn btn-sm btn-warning" role="button"><span class="glyphicon glyphicon-edit"></span> Edit metadata</a>