Skip to content
Snippets Groups Projects
Commit fe419907 authored by Grigorii Demidov's avatar Grigorii Demidov
Browse files

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

parent 6bac5de0
Branches
Tags
No related merge requests found
......@@ -232,6 +232,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
......
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