fixes #2663: Deleted artist entries allow modifications and wiki creations
This commit is contained in:
@@ -2,8 +2,12 @@
|
|||||||
<div id="a-edit">
|
<div id="a-edit">
|
||||||
<h1>Edit Artist</h1>
|
<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" %>
|
<%= render "form" %>
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<p>The artist requested removal of this page.</p>
|
<p>The artist requested removal of this page.</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user