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:
@@ -2,26 +2,22 @@
|
||||
|
||||
<%= table_for @artist_versions, {class: "striped autofit", width: "100%"} do |t| %>
|
||||
<% t.column "Name" do |artist_version| %>
|
||||
<% if artist_version.visible? %>
|
||||
<%= link_to artist_version.name, artist_path(artist_version.artist_id) %>
|
||||
<%= link_to "»", artist_versions_path(search: {artist_id: artist_version.artist_id}) %>
|
||||
<%= link_to artist_version.name, artist_path(artist_version.artist_id) %>
|
||||
<%= link_to "»", artist_versions_path(search: {artist_id: artist_version.artist_id}) %>
|
||||
|
||||
<% if !artist_version.is_active? %>
|
||||
(deleted)
|
||||
<% end %>
|
||||
<% if !artist_version.is_active? %>
|
||||
(deleted)
|
||||
<% end %>
|
||||
|
||||
<% if artist_version.group_name.present? %>
|
||||
<p>(group: <%= artist_version.group_name %>)</p>
|
||||
<% end %>
|
||||
<% if artist_version.group_name.present? %>
|
||||
<p>(group: <%= artist_version.group_name %>)</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% t.column "Other Names" do |artist_version| %>
|
||||
<% if artist_version.visible? %>
|
||||
<%= artist_version_other_names_diff(artist_version) %>
|
||||
<% end %>
|
||||
<%= artist_version_other_names_diff(artist_version) %>
|
||||
<% end %>
|
||||
<% t.column "URLs", td: {class: "col-expand"} do |artist_version| %>
|
||||
<%= artist_version_urls_diff(artist_version) if artist_version.visible? %>
|
||||
<%= artist_version_urls_diff(artist_version) %>
|
||||
<% end %>
|
||||
<% t.column "Updated" do |artist_version| %>
|
||||
<%= link_to_user artist_version.updater %>
|
||||
|
||||
Reference in New Issue
Block a user