% local view, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) local header_level2 = htmlviewfunctions.incrementheader(header_level) %> <% if view.value.roles then htmlviewfunctions.displaysectionstart(cfe({label=view.value.userid.value.." is valid in these roles"}), page_info, header_level2) for a,b in pairs(view.value.roles.value) do print("
",html.html_escape(b),"
") end htmlviewfunctions.displaysectionend(header_level2) end %> <% if view.value.permissions then if view.value.userid then htmlviewfunctions.displaysectionstart(cfe({label=view.value.userid.value.."'s full permissions are"}), page_info, header_level2) elseif view.value.role then htmlviewfunctions.displaysectionstart(cfe({label=view.value.role.value.."'s full permissions are"}), page_info, header_level2) end %>Controller | Action(s) |
---|---|
",html.html_escape(pref..cont)," | ") -- Again, alphabetical order local actions = {} for act in pairs(view.value.permissions.value[pref][cont]) do actions[#actions + 1] = act end table.sort(actions) for y,act in pairs(actions) do print((html.html_escape(act))) end io.write(" |