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, 4 insertions, 0 deletions
diff --git a/tcpproxy-listsmtpentries-html.lsp b/tcpproxy-listsmtpentries-html.lsp
index fb8e761..87809a9 100644
--- a/tcpproxy-listsmtpentries-html.lsp
+++ b/tcpproxy-listsmtpentries-html.lsp
@@ -16,8 +16,12 @@ 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 %>
<%= 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 %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpentry?ipaddr="..(interface.ipaddr or interface.interface), label="Delete "} %>
+ <% end %>
</TD>
<TD style="padding-right:20px;white-space:nowrap;"><%= interface.interface or "" %></TD>
<TD style="padding-right:20px;white-space:nowrap;"><%= interface.ipaddr or "" %></TD>