From 19b92acabcb49fef70d68ae3348f5dc76cf8bd46 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 4 Nov 2018 16:42:55 -0600 Subject: [PATCH] Fix #3970: Make "Copy all notes" not builder exclusive. --- app/controllers/posts_controller.rb | 1 - app/views/posts/partials/show/_options.html.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index f921c70e6..96eb0bfd7 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -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 diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index 1f8c6e124..2237b2c4e 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -11,7 +11,7 @@ <% else %>
  • <%= link_to "Add note", "#", :id => "translate", :"data-shortcut" => "n" %>
  • <% end %> - <% if CurrentUser.is_builder? && post.has_notes? %> + <% if post.has_notes? %>
  • <%= link_to "Copy notes", "#", :id => "copy-notes" %>
  • <% end %>
  • <%= link_to "Add commentary", "#", :id => "add-commentary" %>