diff --git a/app/policies/artist_policy.rb b/app/policies/artist_policy.rb index 1cd5dc2f6..ae0851d38 100644 --- a/app/policies/artist_policy.rb +++ b/app/policies/artist_policy.rb @@ -11,6 +11,10 @@ class ArtistPolicy < ApplicationPolicy unbanned? end + def can_view_banned? + user.is_member? + end + def permitted_attributes [:name, :other_names, :other_names_string, :group_name, :url_string, :is_deleted] end diff --git a/app/views/artists/_show.html.erb b/app/views/artists/_show.html.erb index 46ba09d94..3e7a65bec 100644 --- a/app/views/artists/_show.html.erb +++ b/app/views/artists/_show.html.erb @@ -5,26 +5,30 @@
<%= link_to "View wiki page", @artist.wiki_page %>
- <% end %> - - <%= yield %> - - <% if @artist.tag.present? && @artist.tag.post_count > 0 %> -The artist requested removal of this page.
+ <% else %> + <% if @artist.wiki_page.present? %> +<%= link_to "View wiki page", @artist.wiki_page %>
+ <% end %> + + <%= yield %> + + <% if @artist.tag.present? && @artist.tag.post_count > 0 %> +