Fix #3970: Make "Copy all notes" not builder exclusive.
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
class PostsController < ApplicationController
|
class PostsController < ApplicationController
|
||||||
before_action :member_only, :except => [:show, :show_seq, :index, :home, :random]
|
before_action :member_only, :except => [:show, :show_seq, :index, :home, :random]
|
||||||
before_action :builder_only, :only => [:copy_notes]
|
|
||||||
respond_to :html, :xml, :json
|
respond_to :html, :xml, :json
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<li id="add-notes-list"><%= link_to "Add note", "#", :id => "translate", :"data-shortcut" => "n" %></li>
|
<li id="add-notes-list"><%= link_to "Add note", "#", :id => "translate", :"data-shortcut" => "n" %></li>
|
||||||
<% end %>
|
<% 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>
|
<li id="copy-all-notes-list"><%= link_to "Copy notes", "#", :id => "copy-notes" %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<li id="add-artist-commentary-list"><%= link_to "Add commentary", "#", :id => "add-commentary" %></li>
|
<li id="add-artist-commentary-list"><%= link_to "Add commentary", "#", :id => "add-commentary" %></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user