fixes #2663: Deleted artist entries allow modifications and wiki creations

This commit is contained in:
r888888888
2016-09-20 16:04:25 -07:00
parent 063e4ecb18
commit c8c99e9b9c

View File

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