Browse Source

[Fix] Settings: fix `authenticated` parameter (#886)

tags/1.4.0
Andrew Lewis 7 years ago
parent
commit
779e57c5ec
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/plugins/lua/settings.lua

+ 6
- 0
src/plugins/lua/settings.lua View 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

Loading…
Cancel
Save