artists: allow members to rename, delete, and undelete artists.

Also allow Members to edit deleted or banned artists. Previously this
was limited in the html, but not in the backend.
This commit is contained in:
evazion
2019-12-16 19:38:16 -06:00
parent ddf928515c
commit fff4e3badd
6 changed files with 12 additions and 33 deletions

View File

@@ -2,15 +2,10 @@
<div id="a-edit">
<h1>Edit Artist</h1>
<% if @artist.editable_by?(CurrentUser.user) %>
<%= render "form" %>
<% elsif !@artist.is_active? %>
<p>This artist entry is inactive and cannot be edited.</p>
<% elsif @artist.is_banned? %>
<% if @artist.is_banned? %>
<p>The artist requested removal of this page.</p>
<% else %>
<%= render "form" %>
<% end %>
</div>
</div>