summaryrefslogtreecommitdiffstats
path: root/rc-status-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-17 10:19:09 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-17 10:19:09 +0000
commit8b4476e4401243d43e110b7dcaeb986ded780ee0 (patch)
tree0a06d5974703576de46fe9c07b1b37c2c85afeb0 /rc-status-html.lsp
parentd62a716eea8875c9d08cbeaf41ef93b0174a32f7 (diff)
downloadacf-alpine-baselayout-8b4476e4401243d43e110b7dcaeb986ded780ee0.tar.bz2
acf-alpine-baselayout-8b4476e4401243d43e110b7dcaeb986ded780ee0.tar.xz
Use viewlibrary.check_permission from acf-core-0.9.0
Diffstat (limited to 'rc-status-html.lsp')
-rw-r--r--rc-status-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc-status-html.lsp b/rc-status-html.lsp
index 851050e..446c826 100644
--- a/rc-status-html.lsp
+++ b/rc-status-html.lsp
@@ -7,7 +7,7 @@
<DL>
<TABLE>
<TR>
-<% if session.permissions.rc.edit then %>
+<% if viewlibrary.check_permission("edit") then %>
<TD class='header'>Action</TD>
<% end %>
<TD class='header'>Service Name</TD><TD class='header'>Runlevels</TD>
@@ -15,7 +15,7 @@
<%
for i,item in ipairs(view.value) do %>
<TR>
- <% if session.permissions.rc.edit then %>
+ <% if viewlibrary.check_permission("edit") then %>
<TD><%= html.link{value="edit?servicename="..item.servicename.."&redir="..page_info.orig_action, label="Edit " } %>
<% end %>
<TD><%= html.html_escape(item.servicename) %></TD><TD><%= html.html_escape(table.concat(item.runlevels, ", ")) %>&nbsp;</TD>