pundit: convert artists to pundit.
This commit is contained in:
@@ -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? %>
|
||||
|
||||
Reference in New Issue
Block a user