From: Vsevolod Stakhov Date: Thu, 19 Dec 2024 15:02:20 +0000 (+0000) Subject: [Minor] Fix behaviour of EXPLICIT_ENABLE with regard to settings X-Git-Tag: 3.11.1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de56620e125e27062248272b2028602d1e71b01c;p=thirdparty%2Frspamd.git [Minor] Fix behaviour of EXPLICIT_ENABLE with regard to settings --- diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index 4a9581fe76..233e8113aa 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());