summaryrefslogtreecommitdiffstats
path: root/provisioning-bulkcreatedevices-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2017-06-07 15:08:51 +0000
committerTed Trask <ttrask01@yahoo.com>2017-06-07 21:23:54 +0000
commitd6750dc482da61f4e982d5e76f9209c6c4a69a25 (patch)
treef81538e3db7ebb8cc8f074a8184474b5a10dea39 /provisioning-bulkcreatedevices-html.lsp
parent5faa32ed5c5b6f015713be86286b7cc42778da1b (diff)
downloadacf-provisioning-d6750dc482da61f4e982d5e76f9209c6c4a69a25.tar.bz2
acf-provisioning-d6750dc482da61f4e982d5e76f9209c6c4a69a25.tar.xz
Modify bulkdumpdevices to only show editable values and add bulkdumprawdevices
(cherry picked from commit 0c9b9057fdcce2d5cfe3c6437c872bf849cb6a89)
Diffstat (limited to 'provisioning-bulkcreatedevices-html.lsp')
-rw-r--r--provisioning-bulkcreatedevices-html.lsp6
1 files changed, 5 insertions, 1 deletions
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
%>