VirtualMailManager/Account.py
changeset 82 6c85915f3815
parent 78 8f1e501b1bb1
child 90 1734eb5101c6
--- a/VirtualMailManager/Account.py	Wed Sep 10 00:00:37 2008 +0000
+++ b/VirtualMailManager/Account.py	Thu Sep 11 20:38:30 2008 +0000
@@ -36,10 +36,12 @@
         self._passwd = password
         self._setAddr()
         self._exists()
-        if VMM.VirtualMailManager.aliasExists(self._dbh, self._addr):
+        if self._uid < 1 and VMM.VirtualMailManager.aliasExists(self._dbh,
+                self._addr):
             raise AccE(_(u"There is already an alias with the address »%s«.") %\
                     self._addr, ERR.ALIAS_EXISTS)
-        if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr):
+        if self._uid < 1 and VMM.VirtualMailManager.relocatedExists(self._dbh,
+                self._addr):
             raise AccE(
               _(u"There is already a relocated user with the address »%s«.") %\
                     self._addr, ERR.RELOCATED_EXISTS)