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

This commit is contained in:
Jo-Philipp Wich 2014-04-23 12:15:40 +00:00
parent 2e9b25330c
commit 0b5861d6bf

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)