Shows flag actions div only if user can hide
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
<% if can? :hide, (notification || notification.author) %>
|
||||||
<div class="reply">
|
<div class="reply">
|
||||||
<span class='js-moderation-actions'>
|
<span class='js-moderation-actions'>
|
||||||
<% if can? :hide, notification %>
|
<% if can? :hide, notification %>
|
||||||
@@ -12,3 +13,4 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user