summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/auth/ldap/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 9d190ac..7840ea6 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1326,7 +1326,7 @@ class LDAP(pykolab.base.Base):
for acl_entry in entry[folderacl_entry_attribute]:
acl_access = acl_entry.split()[-1]
- if len(acl_entry.split(', ')) > 0:
+ if len(acl_entry.split(', ')) > 1:
aci_subject = ', '.join(acl_entry.split(', ')[:-1])
else:
aci_subject = acl_entry.split()[0]
@@ -1723,7 +1723,7 @@ class LDAP(pykolab.base.Base):
for acl_entry in entry[folderacl_entry_attribute]:
acl_access = acl_entry.split()[-1]
- if len(acl_entry.split(', ')) > 0:
+ if len(acl_entry.split(', ')) > 1:
aci_subject = ', '.join(acl_entry.split(', ')[:-1])
else:
aci_subject = acl_entry.split()[0]