pundit: convert posts to pundit.

This commit is contained in:
evazion
2020-03-20 01:55:51 -05:00
parent dd39913e55
commit a5418abb31
18 changed files with 178 additions and 95 deletions

View File

@@ -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) %>