summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--heimdal-klist-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/heimdal-klist-html.lsp b/heimdal-klist-html.lsp
index 67175b0..6e72951 100644
--- a/heimdal-klist-html.lsp
+++ b/heimdal-klist-html.lsp
@@ -10,7 +10,7 @@
<%= html.html_escape(data.value) %>
</pre>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].kdestroy then %>
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("kdestroy") then %>
<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/kdestroy") %>">
<DT>Destroy Tickets</DT>
<DD><input class="submit" type="submit" value="Destroy"></DD>
@@ -19,6 +19,6 @@
</DL>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].kinit then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("kinit") then
viewlibrary.dispatch_component("kinit")
end %>