summaryrefslogtreecommitdiffstats
path: root/bin/kolab_smtp_access_policy.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/kolab_smtp_access_policy.py')
-rwxr-xr-xbin/kolab_smtp_access_policy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index e2a9421..7f0bf56 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -792,14 +792,14 @@ class PolicyRequest(object):
log.debug(_("Could not find this user, accepting"), level=8)
return True
- if not user['dn'] == None:
+ if not user['dn'] == False:
recipient_policy = auth.get_user_attribute(
sasl_domain,
user,
'kolabAllowSMTPSender'
)
- if not group['dn'] == None:
+ if not group['dn'] == False:
recipient_policy = auth.get_group_attribute(
sasl_domain,
group,