pundit: convert artists to pundit.

This commit is contained in:
evazion
2020-03-17 20:22:26 -05:00
parent 79a365abe0
commit ff1d71af2e
5 changed files with 155 additions and 130 deletions

View File

@@ -30,7 +30,7 @@
<%= time_ago_in_words_tagged(artist.updated_at) %>
<% end %>
<% t.column column: "control" do |artist| %>
<% if CurrentUser.is_member? %>
<% if policy(artist).update? %>
<%= link_to "Edit", edit_artist_path(artist) %>
<% if artist.is_deleted? %>