diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-10-01 12:35:22 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-10-01 12:35:22 +0000 |
commit | 9d6cae1e656fb77f35c5488c35bf21a2876141de (patch) | |
tree | 8c56aaadca69af593aad7d27e83d7805792d1f28 /freeradius3-viewpasswdfile-html.lsp | |
parent | d5363dd01400989078c25d355390ce1d34f5a8b1 (diff) | |
download | acf-freeradius3-9d6cae1e656fb77f35c5488c35bf21a2876141de.tar.bz2 acf-freeradius3-9d6cae1e656fb77f35c5488c35bf21a2876141de.tar.xz |
Fix links from editmacauthfile and viewpasswdfile HTML views to editfile - typos and add displaycommandresults
Diffstat (limited to 'freeradius3-viewpasswdfile-html.lsp')
-rw-r--r-- | freeradius3-viewpasswdfile-html.lsp | 6 |
1 files changed, 3 insertions, 3 deletions
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") }); </script> -<% 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 |