summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-06-20 11:17:01 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-06-20 11:17:01 +0200
commit9cc9058230c9b321cf8d526f1533cef2b6e6e3fe (patch)
tree2bf493611d00b5d0c467c4b21f490658376e29a6 /pykolab
parent980ba27c4a07e609fe61b5e8f6e5e87826227a68 (diff)
downloadpykolab-9cc9058230c9b321cf8d526f1533cef2b6e6e3fe.tar.gz
Set no quota if the quota for the root folder is 0
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/ldap/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index c2f6df7..26987ee 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1229,6 +1229,10 @@ class LDAP(pykolab.base.Base):
except:
current_ldap_quota = None
+ # If the new quota is zero, get out
+ if new_quota == 0:
+ return
+
if not current_ldap_quota == None:
if not new_quota == (int)(current_ldap_quota):
self.set_entry_attribute(