diff options
Diffstat (limited to 'squid-listfiles-html.lsp')
-rw-r--r-- | squid-listfiles-html.lsp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/squid-listfiles-html.lsp b/squid-listfiles-html.lsp index f9bae19..c28f60d 100644 --- a/squid-listfiles-html.lsp +++ b/squid-listfiles-html.lsp @@ -19,10 +19,10 @@ end %> <% for i,file in ipairs(view.value) do %> <TR> <TD style="padding-right:20px;white-space:nowrap;"> - <% if session.permissions.squid.editfile then %> + <% if viewlibrary.check_permission("editfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editfile?filename="..file.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> - <% if session.permissions.squid.deletefile then %> + <% if viewlibrary.check_permission("deletefile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletefile?filename="..file, label="Delete "} %> <% end %> </TD> @@ -32,7 +32,7 @@ end %> </TABLE> </DL> -<% if viewlibrary and viewlibrary.dispatch_component and session.permissions.squid.createfile then +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then local createform = viewlibrary.dispatch_component("createfile", nil, true) %> <H2><%= html.html_escape(createform.label) %></H2> <% @@ -40,6 +40,6 @@ end %> displayform(createform) end %> -<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].startstop then +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then viewlibrary.dispatch_component("startstop") end %> |