diff options
Diffstat (limited to 'tcpproxy-listsmtpfiles-html.lsp')
-rw-r--r-- | tcpproxy-listsmtpfiles-html.lsp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp index 40c8161..37fbd9e 100644 --- a/tcpproxy-listsmtpfiles-html.lsp +++ b/tcpproxy-listsmtpfiles-html.lsp @@ -15,10 +15,10 @@ 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 %> + <% if viewlibrary.check_permission("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 %> + <% if viewlibrary.check_permission("delsmtpfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpfile?filename="..file, label="Delete "} %> <% end %> </TD> @@ -28,7 +28,7 @@ require("viewfunctions") </TABLE> </DL> -<% if viewlibrary and viewlibrary.dispatch_component and session.permissions.tcpproxy.createsmtpfile then +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createsmtpfile") then local createform = viewlibrary.dispatch_component("createsmtpfile", nil, true) %> <H2><%= html.html_escape(createform.label) %></H2> <% |