% local view, viewlibrary, page_info, session = ... %> <% require("viewfunctions") %> <% displaycommandresults({"edituserpermissions", "editrolepermissions"}, session) %>
User | Permissions | <% for i,user in ipairs(view.value.user) do %>|
<%= html.link{value=page_info.script .. page_info.prefix .. page_info.controller .. "/edituserpermissions?userid=" .. user.id .. "&redir="..page_info.orig_action, label=user.id} %> |
<% for y,allowed in pairs(user.allowed) do
print(html.html_escape(allowed), " ") end %> |
Role | Permissions | <% for i,role in ipairs(view.value.role) do %>|
<%= html.link{value=page_info.script .. page_info.prefix .. page_info.controller .. "/editrolepermissions?role=" .. role.id .. "&redir="..page_info.orig_action, label=role.id} %> |
<% for y,allowed in pairs(role.allowed) do
print(html.html_escape(allowed), " ") end %> |