%- if firstmap and messages then local msg; for _, msg in ipairs(messages) do -%>
<%- end end -%> <% local function has_access(config, level) local rv = luci.util.ubus("session", "access", { ubus_rpc_session = luci.dispatcher.context.authsession, scope = "uci", object = config, ["function"] = level }) return (type(rv) == "table" and rv.access == true) or false end local is_readable = has_access(self.config, "read") local is_writable = has_access(self.config, "write") has_writeable_map = has_writeable_map or is_writable %> <% if is_readable then %>