]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Settings: fix `authenticated` parameter (#886) 892/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 24 Aug 2016 09:54:59 +0000 (11:54 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 24 Aug 2016 09:54:59 +0000 (11:54 +0200)
src/plugins/lua/settings.lua

index 18059a9a6157d43247810078d78e475767bf1a39..1b632f747b701b3181e438eb03d114f2eddfe51a 100644 (file)
@@ -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