summaryrefslogtreecommitdiffstats
path: root/vmail-editusers-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'vmail-editusers-html.lsp')
-rw-r--r--[l---------]vmail-editusers-html.lsp17
1 files changed, 16 insertions, 1 deletions
diff --git a/vmail-editusers-html.lsp b/vmail-editusers-html.lsp
index 215a6d3..0a708e9 120000..100644
--- a/vmail-editusers-html.lsp
+++ b/vmail-editusers-html.lsp
@@ -1 +1,16 @@
-vmail-listusers-html.lsp \ No newline at end of file
+<% local view, viewlibrary, page_info, session = ...
+htmlviewfunctions = require("htmlviewfunctions")
+%>
+
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("listusers") then
+ viewlibrary.dispatch_component("listusers")
+end %>
+
+<% local redir = cfe({ type="hidden", value=page_info.orig_action }) %>
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createuser") then %>
+<% htmlviewfunctions.displayitem(cfe({type="link", value={redir=redir}, label="Create New User", option="Create", action="createuser" }), page_info) %>
+<% end %>
+
+<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createmanyusers") then %>
+<% htmlviewfunctions.displayitem(cfe({type="link", value={redir=redir}, label="Create Multiple Users", option="Create", action="createmanyusers" }), page_info) %>
+<% end %>