comparison MoinMoin/macro/SystemAdmin.py @ 448:45924beef130

user.isSuperUser() check, require cfg.superuser being a list or tuple imported from: moin--main--1.5--patch-452
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 18 Feb 2006 15:31:50 +0000
parents 89d0a178964a
children dc71d3e23d44
comparison
equal deleted inserted replaced
447:e0e016a553bd 448:45924beef130
18 def execute(macro, args): 18 def execute(macro, args):
19 _ = macro.request.getText 19 _ = macro.request.getText
20 request = macro.request 20 request = macro.request
21 21
22 # do not show system admin to users not in superuser list 22 # do not show system admin to users not in superuser list
23 if not request.user.name in request.cfg.superuser: 23 if not request.user.isSuperUser():
24 return '' 24 return ''
25 25
26 result = [] 26 result = []
27 _MENU = { 27 _MENU = {
28 'attachments': (("File attachment browser"), do_admin_browser), 28 'attachments': (("File attachment browser"), do_admin_browser),