luci-base: dispatcher: fix null access on dispatching unknown urls

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4d28c390ab)
This commit is contained in:
Jo-Philipp Wich 2021-10-11 19:01:39 +02:00
parent cfd0bdd206
commit 62d45da4a5

View file

@ -920,8 +920,10 @@ function dispatch(request)
return
end
if page then
page.readonly = not perm
end
end
local action = (page and type(page.action) == "table") and page.action or {}