diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:19:43 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:19:43 +0000 |
commit | 7c812521d5f1216a7b7f68a45adfeb80ad3c3500 (patch) | |
tree | 2a1d92b5b5dc091c122e5503e874b545f6480b6d | |
parent | 99cc262c63fe6a8761f6d497bffe971b99391e2e (diff) | |
download | acf-alpine-conf-7c812521d5f1216a7b7f68a45adfeb80ad3c3500.tar.bz2 acf-alpine-conf-7c812521d5f1216a7b7f68a45adfeb80ad3c3500.tar.xz |
Use viewlibrary.check_permission from acf-core-0.9.0
-rw-r--r-- | lbu-listchanges-html.lsp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lbu-listchanges-html.lsp b/lbu-listchanges-html.lsp index d49d010..2e9c3fe 100644 --- a/lbu-listchanges-html.lsp +++ b/lbu-listchanges-html.lsp @@ -1,24 +1,17 @@ <% local view, 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(view)) -io.write("</span>") ---]] -%> <% displaycommandresults({"commit"}, session, true) %> -<% if viewlibrary and viewlibrary.dispatch_component then +<% viewlibrary.dispatch_component("status") - if session.permissions.lbu.commit then + if viewlibrary.check_permission("commit") then viewlibrary.dispatch_component("commit") end end %> -<% if session.permissions.lbu.getpackage then %> +<% if viewlibrary.check_permission("getpackage") then %> <H1>Download Overlay</H1> <DL> <DT>Generate and download overlay</DT> |