diff MoinMoin/action/Despam.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 8a750c0d229a
children 17ab8fe4a94b
line wrap: on
line diff
--- a/MoinMoin/action/Despam.py	Sat Feb 18 14:21:40 2006 +0000
+++ b/MoinMoin/action/Despam.py	Sat Feb 18 15:31:50 2006 +0000
@@ -161,7 +161,7 @@
     # be extra paranoid in dangerous actions
     actname = __name__.split('.')[-1]
     if actname in request.cfg.actions_excluded or \
-       request.user.name not in request.cfg.superuser:
+       not request.user.isSuperUser():
         return Page.Page(request, pagename).send_page(request,
             msg = _('You are not allowed to use this action.'))