summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-17 10:25:22 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-17 10:25:22 +0000
commitde6f7fa9ad0d78a09a4e331c659ee87429b35bd5 (patch)
treeff5504a56e5f72a486927e89683fb299bb07e7ba
parent94831ef683e1837a64d9099c05d784349977f59b (diff)
downloadacf-heimdal-de6f7fa9ad0d78a09a4e331c659ee87429b35bd5.tar.bz2
acf-heimdal-de6f7fa9ad0d78a09a4e331c659ee87429b35bd5.tar.xz
Use viewlibrary.check_permission from acf-core-0.9.0
-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 %>