diff options
Diffstat (limited to 'provisioning-bulkcreatedevices-html.lsp')
-rw-r--r-- | provisioning-bulkcreatedevices-html.lsp | 6 |
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 %> |