Commit 3601a473 authored by Grigorii Demidov's avatar Grigorii Demidov Committed by Ondřej Surý

modules/policy: allow QTRACE policy to be chained with other policies

parent 6b1dbe52
......@@ -238,6 +238,7 @@ function policy.enforce(state, req, action)
local qry = req:current()
req.options = bit.bor(req.options, kres.query.TRACE)
qry.flags = bit.bor(qry.flags, kres.query.TRACE)
return -- this allows to continue iterating over policy list
elseif type(action) == 'function' then
return action(state, req)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment