diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index 44c17c85f8..3c1d438f34 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -920,7 +920,9 @@ function dispatch(request) return end - page.readonly = not perm + if page then + page.readonly = not perm + end end local action = (page and type(page.action) == "table") and page.action or {}