summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-12 18:21:02 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-13 09:39:41 +0200
commit8264aef9f68b93cc8c92279c1e7be83db8b9b3dc (patch)
tree20db51969c0bc979448b5def64b4e5eaa774c30f /pykolab
parentbaf42acf6b3725bcdf29b8d270021821b22b0fa3 (diff)
downloadpykolab-8264aef9f68b93cc8c92279c1e7be83db8b9b3dc.tar.gz
Log an error if an invalid ACL rights identifier is used
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/imap/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
index 4f29aab..6eae0c1 100644
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -351,6 +351,9 @@ class IMAP(object):
if short_rights.has_key(acl):
acl = short_rights[acl]
+ else:
+ log.error(_("Invalid access identifier %r for subject %r") % (acl, identifier))
+ return False
# Special treatment for '-' and '+' characters
if '+' in acl or '-' in acl: