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:26:39 +0000
commitb8b438ce11d1908f757ecadef728d01a82e3c438 (patch)
tree00fa229de9e57496854875ccf275ee00008f31fc /provisioning-bulkcreatedevices-html.lsp
parent04a4a684d71b4720142ca3ba1902b9122d82156a (diff)
downloadacf-provisioning-b8b438ce11d1908f757ecadef728d01a82e3c438.tar.bz2
acf-provisioning-b8b438ce11d1908f757ecadef728d01a82e3c438.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
%>