summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-04-23 12:14:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-04-23 12:14:07 +0000
commitc5b324148dec1c77aeb44ed740b7e151dfdeb57d (patch)
tree9f1ab641b0f31e890de5e3732c553755c7a35cbd /modules/freifunk/luasrc
parentc3d787ecb458043d04e9055525b5a3af25be47bf (diff)
modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk to ubus
Diffstat (limited to 'modules/freifunk/luasrc')
-rw-r--r--modules/freifunk/luasrc/controller/freifunk/freifunk.lua4
1 files changed, 3 insertions, 1 deletions
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)