diff 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
line wrap: on
line diff
--- a/MoinMoin/macro/SystemAdmin.py	Sat Feb 18 14:21:40 2006 +0000
+++ b/MoinMoin/macro/SystemAdmin.py	Sat Feb 18 15:31:50 2006 +0000
@@ -20,7 +20,7 @@
     request = macro.request
     
     # do not show system admin to users not in superuser list
-    if not request.user.name in request.cfg.superuser:
+    if not request.user.isSuperUser():
         return ''
 
     result = []