diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-04-23 12:15:40 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-04-23 12:15:40 +0000 |
commit | 0b5861d6bfb468c840ccda78f532ee2af8c34ebc (patch) | |
tree | 6f6063f76e15053b7d33d45cfc430dc8c8e8d0b4 /modules/freifunk/luasrc | |
parent | 2e9b25330c5f6e7568c9c32f180f69f7c1bed057 (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.lua | 4 |
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 ed4d6847d2..d4606e750f 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) |