It is now possible to delete a SuperAdmin permission.

Postfix Autoreply plugin is not a real plugin... I've begun the conversion but it will cause a modification into the SQL schema and I don't know how to handle migrations yet...
This commit is contained in:
tonio
2009-10-22 18:31:43 +02:00
parent 52039a2b08
commit 981540b2b5
5 changed files with 39 additions and 13 deletions
+2 -5
View File
@@ -10,10 +10,6 @@ register = template.Library()
@register.simple_tag
def menu(selection, perms):
entries = [
{"name" : "autoreply",
"url" : reverse(main.views.autoreply),
"img" : "/static/pics/auto-reply.png",
"label" : _("Auto-reply message")},
{"name" : "changepwd",
"url" : reverse(main.views.changepassword),
"img" : "/static/pics/edit.png",
@@ -21,6 +17,7 @@ def menu(selection, perms):
"class" : "boxed",
"rel" : "{handler:'iframe',size:{x:350,y:220}}"}
]
entries += events.raiseQueryEvent("UserMenuDisplay", target="user_menu_bar")
return render_to_string('main/menu.html',
{"selection" : selection, "entries" : entries,
@@ -28,6 +25,6 @@ def menu(selection, perms):
@register.simple_tag
def loadextmenu(perms):
menu = events.raiseQueryEvent("UserMenuDisplay")
menu = events.raiseQueryEvent("UserMenuDisplay", target="user_menu_box")
return render_to_string('main/menulist.html',
{"menu" : menu, "perms" : perms})