From: Vsevolod Stakhov Date: Fri, 6 May 2022 15:43:14 +0000 (+0100) Subject: [Minor] Fix logic X-Git-Tag: 3.3~275 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e502bb63f5e8397594eef0f7ff7e98a9f8d0cb7;p=thirdparty%2Frspamd.git [Minor] Fix logic --- diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index f78605b13f..e918d5b2c8 100644 --- a/src/libserver/symcache/symcache_item.cxx +++ b/src/libserver/symcache/symcache_item.cxx @@ -300,7 +300,7 @@ auto cache_item::is_allowed(struct rspamd_task *task, bool exec_only) const -> b } if (!(flags & SYMBOL_TYPE_EXPLICIT_DISABLE)) { - if (allowed_ids.check_id(task->settings_elt->id)) { + if (!allowed_ids.check_id(task->settings_elt->id)) { if (task->settings_elt->policy == RSPAMD_SETTINGS_POLICY_IMPLICIT_ALLOW) { msg_debug_cache_task("allow execution of %s settings id %ud "