/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:
evazion
2019-09-04 15:24:07 -05:00
parent 0ec36785f0
commit 59d92b448e

View File

@@ -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? %>