diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-24 11:05:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-24 11:05:10 +0100 |
commit | 5d616be0903614b2a6d2a0f159fe6153a0b08c37 (patch) | |
tree | fd8cd11d6e853e4c9c73ad79c03e3bb823bd2301 /src/plugins | |
parent | e28d4a87e0f46add641702a44affb3c032b997c4 (diff) | |
parent | 779e57c5ec4e45f4afab0596e9e5406b68721199 (diff) | |
download | rspamd-5d616be0903614b2a6d2a0f159fe6153a0b08c37.tar.gz rspamd-5d616be0903614b2a6d2a0f159fe6153a0b08c37.zip |
Merge pull request #892 from fatalbanana/settings
[Fix] Settings: fix `authenticated` parameter (#886)
Diffstat (limited to 'src/plugins')
-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 |