From 9d6cae1e656fb77f35c5488c35bf21a2876141de Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 1 Oct 2014 12:35:22 +0000 Subject: Fix links from editmacauthfile and viewpasswdfile HTML views to editfile - typos and add displaycommandresults --- freeradius3-viewpasswdfile-html.lsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'freeradius3-viewpasswdfile-html.lsp') diff --git a/freeradius3-viewpasswdfile-html.lsp b/freeradius3-viewpasswdfile-html.lsp index c18e13c..015fb20 100644 --- a/freeradius3-viewpasswdfile-html.lsp +++ b/freeradius3-viewpasswdfile-html.lsp @@ -22,7 +22,7 @@ html = require("acf.html") }); -<% htmlviewfunctions.displaycommandresults({"editpasswdentry", "deletepasswdentry", "editpasswd"}, session) %> +<% htmlviewfunctions.displaycommandresults({"editpasswdentry", "deletepasswdentry", "editpasswd", "editfile"}, session) %> <% htmlviewfunctions.displaycommandresults({"createpasswdentry"}, session, true) %> <% local filename = cfe({ type="hidden", value=view.value.filename.value }) %> @@ -78,8 +78,8 @@ end <% end %> -<% if editable and view.value.data and viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("editfile" then - htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="Expert", option="Edit", action="editfile"}), page_info, htmlviewfunctions.incrementheader(header_level)) %> +<% if editable and view.value.data and viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("editfile") then + htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="Expert", option="Edit", action="editfile"}), page_info, htmlviewfunctions.incrementheader(header_level)) end %> <% if editable and view.value.data and viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createpasswdentry") then -- cgit v1.2.3