From: Andrew Lewis Date: Wed, 24 Aug 2016 09:54:59 +0000 (+0200) Subject: [Fix] Settings: fix `authenticated` parameter (#886) X-Git-Tag: 1.4.0~569^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F892%2Fhead;p=thirdparty%2Frspamd.git [Fix] Settings: fix `authenticated` parameter (#886) --- diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 18059a9a61..1b632f747b 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