<% local view, viewlibrary, page_info, session = ... %> <% require("viewfunctions") %> <% displaycommandresults({"edituserpermissions", "editrolepermissions"}, session) %>

<%= html.html_escape(view.label) %>

User Permissions

<% for i,user in ipairs(view.value.user) do %> <% end %>
UserPermissions
<%= 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 %> <% end %>
RolePermissions
<%= 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 %>