pundit: convert posts to pundit.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<strong>Date</strong>
|
||||
<%= compact_time(post.created_at) %>
|
||||
</span>
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<% if policy(post).can_view_uploader? %>
|
||||
<span class="info">
|
||||
<strong>User</strong>
|
||||
<%= link_to_user(post.uploader) %>
|
||||
|
||||
Reference in New Issue
Block a user