add user-permission management
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user