diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-24 11:54:59 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-24 11:54:59 +0200 |
commit | 779e57c5ec4e45f4afab0596e9e5406b68721199 (patch) | |
tree | 0ecdd2f12f3b8cc6ccba7645746a8875b0af0a31 /src | |
parent | ab58c4cf42362df91c570afc2fec47917616c36b (diff) | |
download | rspamd-779e57c5ec4e45f4afab0596e9e5406b68721199.tar.gz rspamd-779e57c5ec4e45f4afab0596e9e5406b68721199.zip |
[Fix] Settings: fix `authenticated` parameter (#886)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/settings.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 18059a9a6..1b632f747 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -147,6 +147,9 @@ local function check_settings(task) if auth_user then res = true end + if not res then + return nil + end end if rule['ip'] then @@ -439,6 +442,9 @@ local function process_settings_table(tbl) out['user'] = check_table(elt['user'], user) end end + if elt['authenticated'] then + out['authenticated'] = true + end -- Now we must process actions if elt['symbols'] then out['symbols'] = elt['symbols'] end |