diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:23:54 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:23:54 +0000 |
commit | 03556b55c2da60d472d4bc6cbcfd1d475f78d86c (patch) | |
tree | 02b4b76873d8168972f04dbd0413a682e3b5028f | |
parent | db72cac175b5fe2280c5f1fe0e3a39b351aac94f (diff) | |
download | acf-postfix-03556b55c2da60d472d4bc6cbcfd1d475f78d86c.tar.bz2 acf-postfix-03556b55c2da60d472d4bc6cbcfd1d475f78d86c.tar.xz |
Use viewlibrary.check_permission from acf-core-0.9.0
-rw-r--r-- | postfix-listfiles-html.lsp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/postfix-listfiles-html.lsp b/postfix-listfiles-html.lsp index dfca40c..782b7bc 100644 --- a/postfix-listfiles-html.lsp +++ b/postfix-listfiles-html.lsp @@ -1,13 +1,6 @@ <% local data, viewlibrary, page_info, session = ... require("viewfunctions") %> -<% ---[[ DEBUG INFORMATION -io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") -io.write(html.cfe_unpack(data)) -io.write("</span>") ---]] -%> <% displaycommandresults({"deletefile", "expert", "startstop", "rebuilddatabases"}, session) %> <% displaycommandresults({"createfile"}, session, true) %> @@ -46,7 +39,7 @@ end %> </form> </DL> -<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].createfile then +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then local newfileform = viewlibrary.dispatch_component("createfile", nil, true) %> <h2>Create new file</h2> <% |