From: Jo-Philipp Wich Date: Tue, 24 Apr 2018 19:26:01 +0000 (+0200) Subject: luci-base: enable uci session isolation X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7cca3139591a08e62b7900115fe0bfd4a3df8f8a;p=oweals%2Fluci.git luci-base: enable uci session isolation Switch to per-session save directories to decouple LuCI configuration changes from system wide ones. Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index 1984fc4ad..38d919481 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -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