summaryrefslogtreecommitdiffstats
path: root/tcpproxy-listsmtpentries-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'tcpproxy-listsmtpentries-html.lsp')
-rw-r--r--tcpproxy-listsmtpentries-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpproxy-listsmtpentries-html.lsp b/tcpproxy-listsmtpentries-html.lsp
index 9a48e7b..8fdfe96 100644
--- a/tcpproxy-listsmtpentries-html.lsp
+++ b/tcpproxy-listsmtpentries-html.lsp
@@ -16,10 +16,10 @@ require("viewfunctions")
<% for i,interface in ipairs(view.value) do %>
<TR>
<TD style="padding-right:20px;white-space:nowrap;">
- <% if session.permissions.tcpproxy.editsmtpentry then %>
+ <% if viewlibrary.check_permission("editsmtpentry") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editsmtpentry?ipaddr="..(interface.ipaddr or interface.interface).."&redir="..page_info.orig_action, label="Edit "} %>
<% end %>
- <% if session.permissions.tcpproxy.delsmtpentry then %>
+ <% if viewlibrary.check_permission("delsmtpentry") then %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpentry?ipaddr="..(interface.ipaddr or interface.interface), label="Delete "} %>
<% end %>
</TD>