libs/web: Turn dependency tracking on by default
authorSteven Barth <steven@midlink.org>
Fri, 5 Sep 2008 14:34:59 +0000 (14:34 +0000)
committerSteven Barth <steven@midlink.org>
Fri, 5 Sep 2008 14:34:59 +0000 (14:34 +0000)
libs/web/luasrc/dispatcher.lua

index 296c762..09e99e7 100644 (file)
@@ -171,6 +171,7 @@ function dispatch(request)
                viewns.REQUEST_URI = (luci.http.getenv("SCRIPT_NAME") or "") .. (luci.http.getenv("PATH_INFO") or "")
        end
        
                viewns.REQUEST_URI = (luci.http.getenv("SCRIPT_NAME") or "") .. (luci.http.getenv("PATH_INFO") or "")
        end
        
+       track.dependent = (track.dependent ~= false)
        assert(not track.dependent or not track.auto, "Access Violation")
        
        if track.sysauth then
        assert(not track.dependent or not track.auto, "Access Violation")
        
        if track.sysauth then