aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symcache
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/symcache')
-rw-r--r--src/libserver/symcache/symcache_item.cxx2
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());