summaryrefslogtreecommitdiffstats
path: root/apk-expert-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'apk-expert-html.lsp')
-rw-r--r--apk-expert-html.lsp8
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 %>