pundit: convert posts to pundit.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="post-tooltip-header">
|
||||
<span class="post-tooltip-header-left">
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<% if policy(@post).can_view_uploader? %>
|
||||
<%= link_to_user @post.uploader %>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user