mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-18 09:53:56 +01:00
New option to automaticaly remove accounts with mailboxes.
Beware: activating this mode will make domain removal longer. fix #364
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user