From 0b5861d6bfb468c840ccda78f532ee2af8c34ebc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 23 Apr 2014 12:15:40 +0000 Subject: modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus --- modules/freifunk/luasrc/controller/freifunk/freifunk.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua index ed4d6847d..d4606e750 100644 --- a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua +++ b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua @@ -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) -- cgit v1.2.3