Skip to content

Commit

Permalink
Merge pull request #3158 from rpv-tomsk/master
Browse files Browse the repository at this point in the history
[Minor] Multimap: implemented matching authorized user
  • Loading branch information
vstakhov committed Nov 22, 2019
2 parents 7259db6 + 69170b7 commit eb8369e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugins/lua/multimap.lua
Expand Up @@ -866,6 +866,12 @@ local function multimap_callback(task, rule)
end
end
end,
user = function()
local user = task:get_user()
if user then
match_rule(rule, user)
end
end,
filename = function()
local parts = task:get_parts()

Expand Down Expand Up @@ -1037,6 +1043,7 @@ local function add_multimap_rule(key, newrule)
symbol_options = true,
filename = true,
url = true,
user = true,
content = true,
hostname = true,
asn = true,
Expand Down

0 comments on commit eb8369e

Please sign in to comment.