diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:20:41 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-17 10:20:41 +0000 |
commit | 9aa8734f935abaae81941d24a096b9d33ea01aa7 (patch) | |
tree | 48c9975642b6df7013b3ca8045cb83ccfaf4691b /apk-expert-html.lsp | |
parent | 5ea35b88f224e4efb43d5e68e79a9dc881b1c543 (diff) | |
download | acf-apk-tools-9aa8734f935abaae81941d24a096b9d33ea01aa7.tar.bz2 acf-apk-tools-9aa8734f935abaae81941d24a096b9d33ea01aa7.tar.xz |
Use viewlibrary.check_permission from acf-core-0.9.0
Diffstat (limited to 'apk-expert-html.lsp')
-rw-r--r-- | apk-expert-html.lsp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apk-expert-html.lsp b/apk-expert-html.lsp index 9c92122..44b4b48 100644 --- a/apk-expert-html.lsp +++ b/apk-expert-html.lsp @@ -9,18 +9,16 @@ local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "fi func(form, viewlibrary, page_info, session) %> -<% if session.permissions[page_info.controller].updateall or session.permissions[page_info.controller].upgradeall then %> +<% if viewlibrary.check_permission("updateall") or viewlibrary.check_permission("upgradeall") then %> <H2>Update / Upgrade</H2> <DL> -<% end %> -<% if session.permissions[page_info.controller].updateall then %> +<% if viewlibrary.check_permission("updateall") then %> <DT>Update Index</DT> <DD><form action="updateall" method="POST"><input class="submit" type="submit" value="Update"></form></DD> <% end %> -<% if session.permissions[page_info.controller].upgradeall then %> +<% if viewlibrary.check_permission("upgradeall") then %> <DT>Upgrade All</DT> <DD><form action="upgradeall" method="POST"><input class="submit" type="submit" value="Upgrade"></form></DD> <% end %> -<% if session.permissions[page_info.controller].updateall or session.permissions[page_info.controller].upgradeall then %> </DL> <% end %> |