mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-05 12:34:08 +01:00
Partial implementation of ticket #4
This commit is contained in:
+1
-7
@@ -13,13 +13,7 @@ from mailng import admin
|
||||
from mailng.admin.models import Domain, Mailbox, Alias
|
||||
from forms import MailboxForm, DomainForm, AliasForm, PermissionForm
|
||||
from mailng.lib.authbackends import crypt_password
|
||||
from mailng.lib import _render
|
||||
|
||||
def _ctx_ok(url):
|
||||
return {"status" : "ok", "url" : url}
|
||||
|
||||
def _ctx_ko(tpl, ctx):
|
||||
return {"status" : "ko", "content" : render_to_string(tpl, ctx)}
|
||||
from mailng.lib import _render, _ctx_ok, _ctx_ko
|
||||
|
||||
def is_superuser(user):
|
||||
if not user.is_superuser:
|
||||
|
||||
Reference in New Issue
Block a user