Update issues_show_hook_listener.rb

This commit is contained in:
2016-09-01 12:13:06 -04:00
committed by GitHub
parent fee0548899
commit 41fe8f6a5d

View File

@@ -89,7 +89,7 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
end end
def view_issues_show_description_bottom(context={}) def view_issues_show_description_bottom(context={})
return "<br/> #{button_to "Bill Time", "#{Redmine::Utils::relative_url_root}/qbo/bill/#{context[:issue].id}", method: :get}" return "<br/> #{button_to "Bill Time", "#{Redmine::Utils::relative_url_root}/qbo/bill/#{context[:issue].id}", method: :get}" if User.current.admin?
end end
end end