modules/freifunk: don't drop priveleges for OLSR status page, we need root to talk...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 23 Apr 2014 12:15:40 +0000 (12:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 23 Apr 2014 12:15:40 +0000 (12:15 +0000)
modules/freifunk/luasrc/controller/freifunk/freifunk.lua

index ed4d6847d2c23f36308b9505ce77af988f455fea..d4606e750f3a90b6bf18ec5fbc055b9035db2419 100644 (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)