diff --git a/app/helpers/version_check_helper.rb b/app/helpers/version_check_helper.rb index 63d8eaeb2bd..df0e25b9f6e 100644 --- a/app/helpers/version_check_helper.rb +++ b/app/helpers/version_check_helper.rb @@ -1,5 +1,7 @@ module VersionCheckHelper def version_status_badge - image_tag VersionCheck.new.url + if File.exists?(Rails.root.join('safe', 'public.pem')) + image_tag VersionCheck.new.url + end end end