/artists: remove /artists/new from navbar for anon users.
Fixes the logs being flooded with 403 errors because of bots and logged out users trying to access the new artist page.
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
<li><%= render "artists/quick_search" %></li>
|
||||
<%= subnav_link_to "Listing", artists_path %>
|
||||
<%= subnav_link_to "Banned", banned_artists_path %>
|
||||
<%= subnav_link_to "New", new_artist_path %>
|
||||
<% if CurrentUser.is_member? %>
|
||||
<%= subnav_link_to "New", new_artist_path %>
|
||||
<% end %>
|
||||
<%= subnav_link_to "Recent changes", artist_versions_path %>
|
||||
<%= subnav_link_to "URLs", artist_urls_path %>
|
||||
<% if @artist && !@artist.new_record? %>
|
||||
|
||||
Reference in New Issue
Block a user