Skip to content
Snippets Groups Projects
Commit efc958fb authored by Nils Schneider's avatar Nils Schneider
Browse files

gluon-luci-admin: disable when not in configmode

For security reasons we'd like to disable all HTTP config interfaces
when the node is operating normally. This patch disables gluon-luci-admin
when configmode is not enabled.
parent 5e0048ae
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,11 @@ function index()
local uci_state = luci.model.uci.cursor_state()
local configmode = uci_state:get_first("gluon-config-mode", "wizard", "running", "0") == "1"
-- Disable gluon-luci-admin when configmode is not enabled
if not configmode then
return
end
local root = node()
if not root.lock then
root.target = alias("admin")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment