summaryrefslogtreecommitdiffstats
path: root/tcpproxy-listsmtpfiles-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-17 10:28:21 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-17 10:28:21 +0000
commit8f0397f2700ebfddbc524d4274585b7a875ac4ca (patch)
tree058a1443a5259c99d29471ad3623a89d4fc5752a /tcpproxy-listsmtpfiles-html.lsp
parent33c1e98789d2db4a209f7a97164dac8866735774 (diff)
downloadacf-tcpproxy-8f0397f2700ebfddbc524d4274585b7a875ac4ca.tar.bz2
acf-tcpproxy-8f0397f2700ebfddbc524d4274585b7a875ac4ca.tar.xz
Use viewlibrary.check_permission from acf-core-0.9.0
Diffstat (limited to 'tcpproxy-listsmtpfiles-html.lsp')
-rw-r--r--tcpproxy-listsmtpfiles-html.lsp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp
index 40c8161..37fbd9e 100644
--- a/tcpproxy-listsmtpfiles-html.lsp
+++ b/tcpproxy-listsmtpfiles-html.lsp
@@ -15,10 +15,10 @@ require("viewfunctions")
<% for i,file in ipairs(view.value) do %>
<TR>
<TD style="padding-right:20px;white-space:nowrap;">
- <% if session.permissions.tcpproxy.editsmtpfile then %>
+ <% if viewlibrary.check_permission("editsmtpfile") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editsmtpfile?filename="..file.."&redir="..page_info.orig_action, label="Edit "} %>
<% end %>
- <% if session.permissions.tcpproxy.delsmtpfile then %>
+ <% if viewlibrary.check_permission("delsmtpfile") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpfile?filename="..file, label="Delete "} %>
<% end %>
</TD>
@@ -28,7 +28,7 @@ require("viewfunctions")
</TABLE>
</DL>
-<% if viewlibrary and viewlibrary.dispatch_component and session.permissions.tcpproxy.createsmtpfile then
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createsmtpfile") then
local createform = viewlibrary.dispatch_component("createsmtpfile", nil, true) %>
<H2><%= html.html_escape(createform.label) %></H2>
<%