Commit de6f7fa9 authored by Ted Trask's avatar Ted Trask
Browse files

Use viewlibrary.check_permission from acf-core-0.9.0

parent 94831ef6
......@@ -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 %>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment