luci-base: enable uci session isolation
authorJo-Philipp Wich <jo@mein.io>
Tue, 24 Apr 2018 19:26:01 +0000 (21:26 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 5 May 2018 21:11:23 +0000 (23:11 +0200)
Switch to per-session save directories to decouple LuCI configuration changes
from system wide ones.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/dispatcher.lua

index 1984fc4ad2c84b1b5de701ddc1e9a078296647b4..38d919481040a41a0ccfc1405b869dfcb799935e 100644 (file)
@@ -182,6 +182,7 @@ local function session_retrieve(sid, allowed_users)
           (not allowed_users or
            util.contains(allowed_users, sdat.values.username))
        then
+               uci:set_session_id(sid)
                return sid, sdat.values
        end