Fix #3970: Make "Copy all notes" not builder exclusive.

This commit is contained in:
evazion
2018-11-04 16:42:55 -06:00
parent 0152cbe39e
commit 19b92acabc
2 changed files with 1 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
class PostsController < ApplicationController
before_action :member_only, :except => [:show, :show_seq, :index, :home, :random]
before_action :builder_only, :only => [:copy_notes]
respond_to :html, :xml, :json
def index

View File

@@ -11,7 +11,7 @@
<% else %>
<li id="add-notes-list"><%= link_to "Add note", "#", :id => "translate", :"data-shortcut" => "n" %></li>
<% end %>
<% if CurrentUser.is_builder? && post.has_notes? %>
<% if post.has_notes? %>
<li id="copy-all-notes-list"><%= link_to "Copy notes", "#", :id => "copy-notes" %></li>
<% end %>
<li id="add-artist-commentary-list"><%= link_to "Add commentary", "#", :id => "add-commentary" %></li>