]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix behaviour of EXPLICIT_ENABLE with regard to settings
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 19 Dec 2024 15:02:20 +0000 (15:02 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 19 Dec 2024 15:02:20 +0000 (15:02 +0000)
src/libserver/symcache/symcache_item.cxx

index 4a9581fe766266ce19cdb76abde5e7996f5aafb4..233e8113aad6f4aaa6894ba6d1b5bec1d8c42819 100644 (file)
@@ -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());