diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-19 15:02:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-19 15:02:20 +0000 |
commit | de56620e125e27062248272b2028602d1e71b01c (patch) | |
tree | fa870b9a2339276bea462fcab39d93e735f24f2f /src | |
parent | eaeffe7ae7ad8003f149aaea9596d2191e3d6f58 (diff) | |
download | rspamd-de56620e125e27062248272b2028602d1e71b01c.tar.gz rspamd-de56620e125e27062248272b2028602d1e71b01c.zip |
[Minor] Fix behaviour of EXPLICIT_ENABLE with regard to settings
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/symcache/symcache_item.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index 4a9581fe7..233e8113a 100644 --- a/src/libserver/symcache/symcache_item.cxx +++ b/src/libserver/symcache/symcache_item.cxx @@ -408,7 +408,7 @@ auto cache_item::is_allowed(struct rspamd_task *task, bool exec_only) const -> b task->settings_elt->id); } } - else if (flags & SYMBOL_TYPE_EXPLICIT_ENABLE) { + else if ((flags & SYMBOL_TYPE_EXPLICIT_ENABLE) && !task->settings) { msg_debug_cache_task("deny %s of %s as it must be explicitly enabled", what, symbol.c_str()); |