summaryrefslogtreecommitdiffstats
path: root/tcpproxy-listsmtpentries-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-24 15:20:36 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-24 15:20:36 +0000
commit01169cf4a2076de6db14e055b7569722a99b07ea (patch)
tree8491233bd1c91731ee6bacba7a0a75208d5bb4c5 /tcpproxy-listsmtpentries-html.lsp
parent0219cbf27f77936e86e80cb9a090e0944ec16825 (diff)
downloadacf-tcpproxy-01169cf4a2076de6db14e055b7569722a99b07ea.tar.bz2
acf-tcpproxy-01169cf4a2076de6db14e055b7569722a99b07ea.tar.xz
Minor change to roles code and major change to roles. Replaced ALL, CREATE, READ, UPDATE, and DELETE with GUEST, USER, EDITOR, EXPERT, and ADMIN. Changed all roles files and modified some html files to hide options without permissions. Determine default roles from roles files, rather than hard-coded, and added ability to modify default roles by adding permissions.
git-svn-id: svn://svn.alpinelinux.org/acf/tcpproxy/trunk@1563 ab2d0c66-481e-0410-8bed-d214d4d58bed
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>