Commit 308784c6 authored by Ozzieisaacs's avatar Ozzieisaacs

Hide listen button if user has no read/listen permissions

parent 9145c9a5
......@@ -66,7 +66,7 @@
</ul>
</div>
{% endif %}
{% if audioentries|length > 0 %}
{% if audioentries|length > 0 and g.user.role_viewer() %}
<div class="btn-group" role="group">
<button id="listen-in-browser" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-music"></span> {{_('Listen in Browser')}}
......
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