diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-24 15:20:36 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-24 15:20:36 +0000 |
commit | 01169cf4a2076de6db14e055b7569722a99b07ea (patch) | |
tree | 8491233bd1c91731ee6bacba7a0a75208d5bb4c5 /tcpproxy-listsmtpfiles-html.lsp | |
parent | 0219cbf27f77936e86e80cb9a090e0944ec16825 (diff) | |
download | acf-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-listsmtpfiles-html.lsp')
-rw-r--r-- | tcpproxy-listsmtpfiles-html.lsp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp index 6b067e8..5de93ba 100644 --- a/tcpproxy-listsmtpfiles-html.lsp +++ b/tcpproxy-listsmtpfiles-html.lsp @@ -15,8 +15,12 @@ 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 %> <%= 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 %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpfile?filename="..file, label="Delete "} %> + <% end %> </TD> <TD style="white-space:nowrap;"><%= file %></TD> </TR> @@ -24,7 +28,7 @@ require("viewfunctions") </TABLE> </DL> -<% if viewlibrary and viewlibrary.dispatch_component then +<% if viewlibrary and viewlibrary.dispatch_component and session.permissions.tcpproxy.createsmtpfile then local createform = viewlibrary.dispatch_component("createsmtpfile", nil, true) %> <H2><%= createform.label %></H2> <% |