From d605f617e4b4b9840393b82b7a810361bc970afb Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 5 Sep 2016 19:58:40 -0400 Subject: [PATCH] Update issues_show_hook_listener.rb --- lib/issues_show_hook_listener.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/issues_show_hook_listener.rb b/lib/issues_show_hook_listener.rb index c8b686c..6155dd8 100644 --- a/lib/issues_show_hook_listener.rb +++ b/lib/issues_show_hook_listener.rb @@ -90,7 +90,7 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener def view_issues_show_description_bottom(context={}) bill_button = button_to "Bill Time", "#{Redmine::Utils::relative_url_root}/qbo/bill/#{context[:issue].id}", method: :get if User.current.admin? - share_button = button_to "Share", "#{Redmine::Utils::relative_url_root}/customers/view/#{context[:issue].share_token.token}", method: :get if User.current.logged_in? + share_button = button_to "Share", "#{Redmine::Utils::relative_url_root}/customers/view/#{context[:issue].share_token.token}", method: :get if User.current.logged? return "
#{bill_button} #{share_button}" end