From 01169cf4a2076de6db14e055b7569722a99b07ea Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 24 Oct 2008 15:20:36 +0000 Subject: 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 --- tcpproxy-listsmtpfiles-html.lsp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tcpproxy-listsmtpfiles-html.lsp') 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 %> + <% 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 %> <%= file %> @@ -24,7 +28,7 @@ require("viewfunctions") -<% 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) %>

<%= createform.label %>

<% -- cgit v1.2.3