modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus

remotes/luci-0.12
Jo-Philipp Wich 2014-04-23 12:15:40 +00:00
parent 2e9b25330c
commit 0b5861d6bf
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,9 @@ function index()
assign({"freifunk", "status", "splash"}, {"splash", "publicstatus"}, _("Splash"), 40)
end
assign({"freifunk", "olsr"}, {"admin", "status", "olsr"}, _("OLSR"), 30)
page = assign({"freifunk", "olsr"}, {"admin", "status", "olsr"}, _("OLSR"), 30)
page.setuser = false
page.setgroup = false
if nixio.fs.access("/etc/config/luci_statistics") then
assign({"freifunk", "graph"}, {"admin", "statistics", "graph"}, _("Statistics"), 40)