diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-01-23 17:46:49 -0500 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-01-23 17:46:49 -0500 |
commit | 35e11d3f9186ed9f13ab2008589832242e15b49d (patch) | |
tree | 23b72dc486248eee619a3463910a07528e04e3e0 | |
parent | df0f97d35f039eafefd79eb63c05a6b73c203177 (diff) | |
download | acf-openssl-35e11d3f9186ed9f13ab2008589832242e15b49d.tar.bz2 acf-openssl-35e11d3f9186ed9f13ab2008589832242e15b49d.tar.xz |
Hide CA download links if there are CA errors
-rw-r--r-- | openssl-status-html.lsp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp index 796d63a..3dfb813 100644 --- a/openssl-status-html.lsp +++ b/openssl-status-html.lsp @@ -43,7 +43,7 @@ end %> <% -if viewlibrary.check_permission("downloadcacert") then +if not view.value.cacert.errtxt and viewlibrary.check_permission("downloadcacert") then htmlviewfunctions.displaysectionstart(cfe({label="Download CA Cert"}), page_info, header_level) htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="pem"}), viewtype=cfe({type="hidden", value="stream"})}, label="", option="Download PEM", action="downloadcacert"}), page_info, -1) htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="der"}), viewtype=cfe({type="hidden", value="stream"})}, label="", option="Download DER", action="downloadcacert"}), page_info, -1) |