summaryrefslogtreecommitdiffstats
path: root/openssl-status-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-17 10:26:02 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-17 10:26:02 +0000
commitc6cc30b44087e6af84283dcf8d199bb95f35fdf5 (patch)
tree04a22104badd39642238ae4452da379c57f1baa3 /openssl-status-html.lsp
parentf3924b39a0ace447a8a0ecdbfd0a1a76cb7264d8 (diff)
downloadacf-openssl-c6cc30b44087e6af84283dcf8d199bb95f35fdf5.tar.bz2
acf-openssl-c6cc30b44087e6af84283dcf8d199bb95f35fdf5.tar.xz
Use viewlibrary.check_permission from acf-core-0.9.0
Diffstat (limited to 'openssl-status-html.lsp')
-rw-r--r--openssl-status-html.lsp8
1 files changed, 4 insertions, 4 deletions
diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp
index decc991..1837ab0 100644
--- a/openssl-status-html.lsp
+++ b/openssl-status-html.lsp
@@ -6,7 +6,7 @@
<H1>System Info</H1>
<DL>
<% displayitem(view.value.version) %>
-<% if view.value.version and view.value.version.errtxt and session.permissions.apk and session.permissions.apk.install then %>
+<% if view.value.version and view.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then %>
<a href="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install?package="..view.value.version.name) %>">Install</a>
<% end %>
<% displayitem(view.value.conffile) %>
@@ -17,17 +17,17 @@
<% if not view.value.version.errtxt and not view.value.conffile.errtxt then
if view.value.environment.errtxt then
- if viewlibrary and viewlibrary.dispatch_component and session.permissions.openssl.checkenvironment then
+ if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("checkenvironment") then
viewlibrary.dispatch_component("checkenvironment")
end
elseif not view.value.cacert.errtxt and not view.value.cakey.errtxt then %>
<H1>CA Certificate contents</H1>
<DL><pre><%= html.html_escape(view.value.cacertcontents.value) %></pre></DL>
<% elseif viewlibrary and viewlibrary.dispatch_component then
- if session.permissions.openssl.putcacert then
+ if viewlibrary.check_permission("putcacert") then
viewlibrary.dispatch_component("putcacert")
end
- if session.permissions.openssl.generatecacert then
+ if viewlibrary.check_permission("generatecacert") then
viewlibrary.dispatch_component("generatecacert")
end
end