mirror of https://github.com/openwrt/luci.git
modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus
parent
2e9b25330c
commit
0b5861d6bf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue