Fix #4275: Unable to update "banned artist" entries.
Allow all users to view and edit artist entries and wiki pages belonging to banned artists. There was little need to hide these pages from Members, it was mainly to appease artists who didn't like us even linking to their sites. These restrictions also had multiple flaws: * Banned artist information was still visible in the API. * It was still possible to edit banned artists using the API. * It was still possible for unprivileged users to revert banned artist entries or wiki pages to previous versions. * The restrictions were inconsistent: in various places they were either Member-only, Gold-only, or Builder-only.
This commit is contained in:
@@ -3,23 +3,21 @@
|
||||
<div id="excerpt" style="display: none;">
|
||||
<% if post_set.artist.present? %>
|
||||
<% post_set.artist.tap do |artist| %>
|
||||
<% if artist.visible? %>
|
||||
<% unless artist.notes.blank? %>
|
||||
<div class="prose">
|
||||
<%= format_text(artist.notes) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div>
|
||||
<%= render "artists/summary", artist: artist %>
|
||||
<%= render "tag_relationships/alias_and_implication_list", tag: artist.tag %>
|
||||
|
||||
<p class="links">
|
||||
<%= link_to "View wiki", artist.wiki_page %> |
|
||||
<%= link_to "View artist", artist_path(artist.id) %>
|
||||
</p>
|
||||
<% unless artist.notes.blank? %>
|
||||
<div class="prose">
|
||||
<%= format_text(artist.notes) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div>
|
||||
<%= render "artists/summary", artist: artist %>
|
||||
<%= render "tag_relationships/alias_and_implication_list", tag: artist.tag %>
|
||||
|
||||
<p class="links">
|
||||
<%= link_to "View wiki", artist.wiki_page %> |
|
||||
<%= link_to "View artist", artist_path(artist.id) %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
<% elsif post_set.wiki_page.present? %>
|
||||
<% post_set.wiki_page.tap do |wiki_page| %>
|
||||
|
||||
Reference in New Issue
Block a user