From b8b438ce11d1908f757ecadef728d01a82e3c438 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 7 Jun 2017 15:08:51 +0000 Subject: Modify bulkdumpdevices to only show editable values and add bulkdumprawdevices (cherry picked from commit 0c9b9057fdcce2d5cfe3c6437c872bf849cb6a89) --- provisioning-bulkcreatedevices-html.lsp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'provisioning-bulkcreatedevices-html.lsp') diff --git a/provisioning-bulkcreatedevices-html.lsp b/provisioning-bulkcreatedevices-html.lsp index 0f0e45f..17907a6 100644 --- a/provisioning-bulkcreatedevices-html.lsp +++ b/provisioning-bulkcreatedevices-html.lsp @@ -13,5 +13,9 @@ html = require("acf.html") <% local viewtype = cfe({type="hidden", value="stream"}) - htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Bulk Dump Devices", option="Dump", action="bulkdumpdevices"}), page_info) + if viewlibrary.check_permission("bulkdumprawdevices") then + htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Bulk Dump Devices", option="Dump", action="bulkdumprawdevices"}), page_info) + elseif viewlibrary.check_permission("bulkdumpdevices") then + htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Bulk Dump Devices", option="Dump", action="bulkdumpdevices"}), page_info) + end %> -- cgit v1.2.3