New option to automaticaly remove accounts with mailboxes.

Beware: activating this mode will make domain removal longer.

fix #364
This commit is contained in:
Antoine Nguyen
2013-01-21 22:59:23 +01:00
parent 64c6bdde18
commit 2d89bb11ee
5 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ def deldomain(request):
raise PermDeniedException
if mb and mb.domain == dom:
raise AdminError(_("You can't delete your own domain"))
dom.delete(keepdir=keepdir)
dom.delete(request.user, keepdir)
msg = ungettext("Domain deleted", "Domains deleted", len(selection))
return ajax_simple_response({"status" : "ok", "respmsg" : msg})